0.3.3 • Published 3 years ago

react-native-rounded-checkbox v0.3.3

Weekly downloads
33
License
MIT
Repository
github
Last release
3 years ago

Rounded Checkbox with animated and fully customizable options library for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

npm i react-native-rounded-checkbox

Peer Dependencies

"@freakycoder/react-native-bounceable": ">= 0.1.1"

Usage

Import

import RoundedCheckbox from "react-native-rounded-checkbox";

Fundamental Usage

<RoundedCheckbox onPress={(checked) => console.log("Checked: ", checked)} />

Configuration - Props

PropertyTypeDefaultDescription
onPressfunctionundefinedset your own onPress functionality
textstring"L"change the default text value
componentcomponentTextchange the default Text component with any component like Icon from react-native-dynamic-vector-icons
isCheckedbooleanfalseset the initial checked state
checkedColorcolor#0bc8a5change the background color when checked state is true
uncheckedColorcolor#f0f0f0change the background color when checked state is false
checkedTextColorcolor#fdfdfdchange the text color when checked state is true
uncheckedTextColorcolor#5c5969change the text color when checked state is false
outerBorderColorcolor#eeeeeechange the outer border color
outerSizenumber50change the whole outer size
innerSizenumber40change the whole inner size
textStylestyledefaultset your own text style instead of default one
activebooleanundefineddisables the built-in check system and it let's to control check system

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Credits

Heavily inspired by William Candillon's Youtube Series

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Rounded Checkbox is available under the MIT license. See the LICENSE file for more info.