react-native-simple-checkbox

1.0.4 • Public • Published

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 parameter
  • checked : 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)

Package Sidebar

Install

npm i react-native-simple-checkbox

Weekly Downloads

3

Version

1.0.4

License

ISC

Last publish

Collaborators

  • mkurapov