Simple CheckBox for react-native
npm install react-native-easy-checkbox --save
react-native link react-native-vector-icons
import CheckBox from 'react-native-easy-checkbox';
<CheckBox name="name1" checked={true} onChange={(value) => this._onChangeValue(value)}/>
Checkbox component all Configuration.
Props | Option | Default | Description |
---|---|---|---|
name | String | checkbox | Name of checbox |
checked | Boolean | true | State of checkbox |
checkBoxTrueStyle | Array or Object | - | Style for True Checkbox container |
checkBoxFalseStyle | Array or Object | - | Style for False Checkbox container |
checkIconStyle | Array or Object | - | Style for Checkbox |
onChange | Function | - | On touch of checkbox returns state of checkbox |