1.0.0 • Published 4 years ago

rn-round-checkbox v1.0.0

Weekly downloads
516
License
-
Repository
github
Last release
4 years ago

React Native Round Checkbox

Pure js, lightweight checkbox styled as in iOS. Depends on react-native-vector-icons

install

npm i --save rn-round-checkbox

Usage

import RoundCheckbox from 'rn-round-checkbox';

Example 1

<RoundCheckbox
  size={24}
  checked={this.state.isSelected}
  onValueChange={(newValue) => {console.log(newValue)}}
/>

Props

PropertyTypeDefaultDescription
iconstringios-checkmarkname of icon (from Ionicons) in the checkbox
backgroundColorstring'#007AFF'background color when checked
sizenumber24icon size
iconColorstring'white'icon color
borderColorstring'grey'border color
checkedbooleanfalsechecked
onValueChangefunctionfunction called on change with new value
styleobject{}overwrite styles that are passed to the parent

License: MIT

1.0.0

4 years ago

0.3.4

6 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.2.1

7 years ago

0.3.0

7 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago