@dayladau/rn-round-checkbox

1.0.1 • Public • Published

React Native Round Checkbox

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

install

npm i --save @dayladau/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

Property Type Default Description
icon string ios-checkmark name of icon (from Ionicons) in the checkbox
backgroundColor string '#007AFF' background color when checked
size number 24 icon size
iconColor string 'white' icon color
borderColor string 'grey' border color
checked boolean false checked
onValueChange function function called on change with new value
style object {} overwrite styles that are passed to the parent

License: MIT

/@dayladau/rn-round-checkbox/

    Package Sidebar

    Install

    npm i @dayladau/rn-round-checkbox

    Weekly Downloads

    2

    Version

    1.0.1

    License

    none

    Unpacked Size

    3.78 kB

    Total Files

    4

    Last publish

    Collaborators

    • thanhpk