1.0.12 • Published 4 years ago

react-native-just-checkbox v1.0.12

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

react-native-just-checkbox

CheckBox component for React Native

  • customizable color & size & shape
  • support both iOS and android

Installation

$ npm install react-native-just-checkbox --save

Example

import CheckBox from 'react-native-just-checkbox' 

<CheckBox 
   isChecked={true}
   checkBoxSize={40}
   checkColor='darkturquoise'
   squareCheckBox={true}
/>

Preview

screenshot

Props

PROPSDESCRIPTIONTYPE
isCheckedinitial state of the checkbox, DEFAULT: falsebool
checkBoxSizesize of the checkbox, DEFAULT: 30number
checkColorcolor of the checkbox, follow 'React Native Named colors', DEFAULT: 'navy'string
squareCheckBoxBy default, we provide a circle-checkbox. By settting this props to true change the shape of the checkbox to square. No props are needed for the circle-checkbox.bool
onTogglefunction which is invoked when the checkbox is clickedfunction

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago