1.0.3 • Published 5 years ago

react-native-group-checkbox v1.0.3

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

react-native-group-checkbox

A more concise way to create checkboxes by passing in an array of labels property without having to creating individual checkbox

Alt Text

Installation

npm install react-native-group-checkbox

Getting started

import CheckBoxes from 'react-native-group-checkbox'

<Checkboxes
  labels={ ['option1', 'option2'] }
  onChange={ ({ checkboxes }) => console.log(checkboxes) } // Return an array of checked boxes
/>

API

PropsTypeDescriptionDefault
checkedarraykeep track of checked boxes[]
onChangefunctioncallback function when check and unchecknull

Contribute

Pull requests and Issues are more than welcomed to enhance and better the component.