1.0.1 • Published 8 years ago
react-native-easy-checkbox v1.0.1
react-native-easy-checkbox
Simple CheckBox for react-native
Installation in project
npm install react-native-easy-checkbox --save
react-native link react-native-vector-iconsExample
Example here
Sample usage
import CheckBox from 'react-native-easy-checkbox';<CheckBox name="name1" checked={true} onChange={(value) => this._onChangeValue(value)}/>Configuration
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 |
