Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Checkbox component for React native

NotificationsYou must be signed in to change notification settings

sconxu/react-native-checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checkbox component for React native

Installation:

Install the component through npm using:

npm install react-native-checkbox --save

Example:

importCheckBoxfrom'react-native-checkbox';<CheckBoxlabel='Label'checked={true}onChange={(checked)=>console.log('I am checked',checked)}/>

Props:

  • label : text that will be displayed along the checkbox
  • labelBefore : position the label before the checkbox (boolean). The defaultvalue is false
  • labelStyle : style object that will be applied to the label
  • checked : initial checked value
  • checkedImage: checked image (e.g.: require('PATH_TO_IMAGE'))
  • checkboxStyle : style object that will be applied to thecheckbox
  • uncheckedImage: unchecked image (e.g.: require('PATH_TO_IMAGE'))
  • onChange : callback function that will be invoked with the toggled checked property as argument.
  • containerStyle : style object that will be applied to thecontainer
  • underlayColor : style the touchable component underlay color
  • accessible : indicates whether view is an accessible element
  • accessibilityLabel : maps to content description / label for Android automation
  • testID : maps to id / name for iOS automation

About

Checkbox component for React native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors20


[8]ページ先頭

©2009-2025 Movatter.jp