Checkbox component for React native
##Installation:
First you need to add cb_disabled.png
and cb_enabled.png
images from the repository as image assets inside your XCode project. Here is the link on how to do that https://facebook.github.io/react-native/docs/image.html#adding-static-resources-to-your-ios-app-using-images-xcassets
Then you can install the component through npm using:
npm install react-native-checkbox --save
##Example:
<CheckBox
label='Label'
checked={true}
onChange={(checked) => console.log('I am checked', checked)}
/>
##Props:
label
: text that will be displayed along the checkboxlabelBefore
: position the label before the checkbox (boolean). The default value is falselabelStyle
: style object that will be applied to the labelchecked
: initial checked valueonChange
: callback function that will be invoked with the toggled checked property as argument.