Can I Use React-select In React-native?


Answer :

You can't use select2 or react-select with react-native, because it's DOM based and so, it will work only in navigator, not in react-native

The closest react-native equivalent I've found is react-native-multiple-select, you can find it on github at https://github.com/toystars/react-native-multiple-select or install it with

npm i react-native-multiple-select 

Probably the closest to what you want that comes bundled with React Native is http://facebook.github.io/react-native/docs/picker.html

The Picker component will give you a tumbler thing on iOS and a dropdown on Android

Alternatively maybe this 3rd party component is closer to what you want: https://github.com/bulenttastan/react-native-list-popover

From How to use React native select box


Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable