Skip to content

react native checkbox component for ios and android

License

NotificationsYou must be signed in to change notification settings

tdle94/react-native-group-checkbox

Repository files navigation

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.

Releases

No releases published

Packages

No packages published