How to use the Actual React selection box

I worked on IosApp using React Native. I need a form element like select box in HTML. Is there a way to achieve the same result in the components of the active form of React?

+7
source share
3 answers

Probably closest to what you want, bundled with React Native, http://facebook.imtqy.com/react-native/docs/picker.html

The Picker component will give you a toggle switch on iOS and a drop down list on Android

Alternatively, perhaps this third-party component is closer to what you want: https://github.com/bulenttastan/react-native-list-popover

People are constantly creating new components for React Native, a good place to search: https://react.parts/

+7
source

If you are looking for something that works on both Android and iOS. I would recommend this. Possible Solution. https://github.com/gs-akhan/react-native-select

0
source

First, you need to set the select option using npm:

npm i react-native-option-select --save 

Then you must enable

 import DropDown, { Select, Option, OptionList, } from 'react-native-option-select'; 
0
source

Source: https://habr.com/ru/post/986857/


All Articles