ThinkAndCode
ThinkAndCode

Reputation: 1657

How to select multiple values from Picker component in react-native?

react-native Picker component doesn't seem like providing multiselect option https://facebook.github.io/react-native/docs/picker.html#enabled

But, I have com across some libraries which provides multiselect option like,

https://github.com/toystars/react-native-multiple-select

https://www.npmjs.com/package/react-native-multiple-select-list

But is there any way to select multiple values without going for package?

Upvotes: 15

Views: 14483

Answers (1)

blademetal
blademetal

Reputation: 1

As @Adam Kipnis pointed out, you could always write your own.

You can store the values in an array and render from there.

Since the question was asked the developer team has deprecated the default Picker component. They provide a link for community packages. https://reactnative.directory/?search=picker

Upvotes: 0

Related Questions