An open API service indexing awesome lists of open source software.

https://github.com/ricardo93borges/rn-multiselect

Multiselect component for react native
https://github.com/ricardo93borges/rn-multiselect

hacktoberfest multiselect npm-package react-native

Last synced: 5 months ago
JSON representation

Multiselect component for react native

Awesome Lists containing this project

README

          

# RN Multiselect

[![npm version](https://badge.fury.io/js/rn-multiselect.svg)](https://badge.fury.io/js/rn-multiselect)

Multiselect component for react native

## Install

```
npm i rn-multiselect
```

## Usage

```jsx
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.