About
This is a React-Native Checkbox component that you can freely modify its styles.
Instalation
To install just input the following command:
npm i react-native-customizable-checkbox
or
yarn add react-native-customizable-checkbox
Basic Usage
//... state = check: false { console} { return <CheckBox label="Check" value=thisstatecheck // required onChangeValue= this //required /> }
Advanced Usage
//... state = check: false { console} { return <Checkbox label="Check" // isContainerClickable={true} // (default false), when true, clicks on checkbox container will change it's state // useNativeDriver={true} // (default false) // checkImage={pathToImage} image for check mark // colorActive={"#0ff"} hex color when checkbox is marked // colorInactive={"#fff"} hex color when checkbox is unmarked // boxStyle={yourBoxStyles} your custom style to the box // containerStyle={yourContainerStyles} your custom style for the whole container // textStyle={yourTextStyles} your custom style for the label value=thisstatecheck // required onChangeValue= this //required /> }
- All commented options above are optional.
- If you want to use the "checkImage" prop, provide a image path, for example:
;// ...checkImage = check;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.