New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-checkbox-group

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-checkbox-group

React native checkbox group component

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
71
increased by7.58%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-checkbox-group

React native checkbox group component

Install :

npm install --save react-native-checkbox-group

Example usage :

import CheckboxGroup from 'react-native-checkbox-group'

<CheckboxGroup
              callback={(selected) => { console.log(selected) }}
              iconColor={"#00a2dd"}
              iconSize={30}
              checkedIcon="ios-checkbox-outline"
              uncheckedIcon="ios-square-outline"
              checkboxes={[
                {
                  label: "first", // label for checkbox item
                  value: 1, // selected value for item, if selected, what value should be sent?
                  selected: true // if the item is selected by default or not.
                },
                {
                  label: "second",
                  value: 2
                },
              ]}
              labelStyle={{
                color: '#333'
              }}
              rowStyle={{
                flexDirection: 'row'
              }}
              rowDirection={"column"}
            />

react-native-checkbox-group

Props:

PropTypeDescription
callbackFunctionwhenever user selects or changes selections it will be called.
iconColorStringicon color for checked/unchecked icons and search icon also border color of search bar
iconSizeIntegericon size for checked/unchecked icons
checkedIconStringselected/checked icon name (react-native-vector-icons/Ionicon)
uncheckedIconStringunselected/unchecked icon name (react-native-vector-icons/Ionicon)
checkboxesObjectcheckboxes. see the example.
labelStyleObjectstyles for checkbox label
rowStyleObjectstyles for each checkbox
rowDirectionStringcolumn or row. how to list checkboxes

Author:

Ata S.Mohammadi. ataomega@gmail.com

Keywords

FAQs

Package last updated on 20 Jun 2017

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