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

rn-multiselect

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

rn-multiselect

Multiselect component for React Native

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

RN Multiselect

npm version

Multiselect component for react native

Install

npm i rn-multiselect

Usage

<MultiSelect
  data={[{key:1, label:'Option 1'}, {key:2, label:'Option 2'}, {key:3, label:'Option 3' } ]}
  selectedOptions={[1,2]}
  onChange={values => this.setState({ selectedOptions: values })}
  modalFooterText="Submit"
  placeholder="Click here to choose"
  displayOptionsLimit={5}
/>








Props
  • data (required): Options, expect an array of objects with key and label
  • selectedOptions: Selected options, expect an array of selected options's keys
  • onChange: Function that is called when a option is selected, returns selected options
  • modalFooterText: Text displayed on modal's footer
  • placeholder: Text displayed when there is no tag selected
  • displayOptionsLimit: Limit of selected options displayed, default is 2.

Keywords

FAQs

Package last updated on 25 Oct 2018

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