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
- Host: GitHub
- URL: https://github.com/ricardo93borges/rn-multiselect
- Owner: ricardo93borges
- Created: 2018-10-23T15:28:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T19:02:34.000Z (over 7 years ago)
- Last Synced: 2025-10-06T01:48:56.284Z (8 months ago)
- Topics: hacktoberfest, multiselect, npm-package, react-native
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RN Multiselect
[](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.