Custom Checkbox For React Native

Description:

Yet another custom checkbox component for React Native. The check symbol is based on React Native Vector Icons.

Installation:

# NPM
$ npm install react-native-custom-checkbox --save

Usage:

import Checkbox from 'react-native-custom-checkbox';
<Checkbox
  checked={true}
  style={{backgroundColor: '#f2f2f2', color:'#900', borderRadius: 5}}
  onChange={(name, checked) => _myFunction(name, checked)}/>

Props.

  • checked: true or false
  • name: string
  • onChange: function
  • size: number
  • style: object

Preview:

Custom Checkbox For React Native

Add Comment