Skip to content

jinnnnn-n/react-native-just-checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 Below document is for v1. v2 version will be added soon

react-native-just-checkbox (v1)

This is a simple React Native app built with expo which provides the preview page introduced in the npm package→'react-native-just-checkbox'. 'react-native-just-checkbox' is a CheckBox component for React Native where you can customize the size, the color, and the shape of a CheckBox component which supports both iOS and android.

If you want to use the npm package in your own project, please visit 'here(npm package link)' for installation and guides.

Quick start

$ git clone https://github.com/jinnnnn-n/react-native-just-checkbox
$ cd react-native-just-checkbox
$ npm install # or yarn install
$ expo start # or yarn start

Preview

screenshot

Props

PROPS DESCRIPTION TYPE
isChecked initial state of the checkbox, DEFAULT: false bool
checkBoxSize size of the checkbox, DEFAULT: 30 number
checkColor color of the checkbox, follows 'React Native Named colors', DEFAULT: 'navy' string
squareCheckBox By 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
onToggle function which is invoked when the checkbox is clicked function