react-native-simple-checkbox
v1.0.4
Published
A simple circle checkbox component for React Native using FontAwesome icons.
Downloads
18
Maintainers
Readme
A simple circle checkbox component for React Native using FontAwesome icons.
##Install:
Install using npm:
npm install react-native-simple-checkbox --save
##Example:
import SimpleCheckBox from 'react-native-simple-checkbox';
<SimpleCheckBox
onToggle={(checked) => alert('icon checked? '+checked)}
/>
##Dependencies:
FontAwesome icons: react-native-vector-icons
##Props:
onToggle
: function which will be invoked with check state as a parameterchecked
: initial checked value (default: false)buttonColor
: color of the button (default: 'lightgrey')buttonSize
: size of the button (default: 25)iconSize
: size of the icon (default: 15)iconColor
: color of the button (default: 'green')iconImage
: checked icon from font awesome (default: 'check')disableOnClick
: disable any button presses after first click (default: false)