Anthony
Anthony

Reputation: 41

How can I use DropDown List in Expo React-Native?

I have been facing a problem with react native and expo as I cannot find a dropdown list component for form input. How can I do that without ejecting from expo?

Upvotes: 4

Views: 26588

Answers (4)

sekrett
sekrett

Reputation: 1275

Try ListItem from React Native Elements: https://reactnativeelements.com/docs/listitem

See ListItem.Accordion example.

Upvotes: 0

Muhammad Talha
Muhammad Talha

Reputation: 832

I tried many react-native and expo dropdowns. But the best one is react-native-material-dropdown-v2-fixed that I ever found. So I was thinking I should have to share with all you guys.

https://www.npmjs.com/package/react-native-material-dropdown-v2-fixed

Upvotes: 2

Roberto C Dl Garza
Roberto C Dl Garza

Reputation: 84

try this https://github.com/react-native-community/react-native-picker On others expo versions the picker from react has being depreciated so on this link you'll find different examples of drop down listings.

Upvotes: 0

RossHochwert
RossHochwert

Reputation: 170

You should be able to use Picker module. They recommend using the React Native Community Picker package. You do not need to eject for it to work, you can just install it through NPM.

Upvotes: 2

Related Questions