Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-checkbox-touch-events

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-checkbox-touch-events

Checkbox component for React native

  • 1.0.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-checkbox-touch-events

Checkbox component for React native with onPressIn and onPressOut events.

##Installation:

Install the component through npm using:

npm install react-native-checkbox-touch-events --save

##Example:

import CheckBox from 'react-native-checkbox-touch-events';

<CheckBox
  label='Label'
  checked={true}
  onChange={(checked) => console.log('I am checked', checked)}
  onPressIn={pressIn}
  onPressOut={pressOut}
/>

##Props:

  • label : text that will be displayed along the checkbox
  • labelBefore : position the label before the checkbox (boolean). The default value 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 the checkbox
  • 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 the container
  • underlayColor : style the touchable component underlay color

Keywords

FAQs

Package last updated on 05 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc