'React Native dropdown menu

How do I implement dropdown menu in React Native. Something similar to what we do for the web. Is it even possible or are the dropdowns menu different on mobile? I saw that react native has a Picker but that is now deprecated. Any suggestions to other libraries that are widely used and customizable are welcome.



Solution 1:[1]

Take a look at Menu in react-native-paper

Also, check their demo app which shows a demo of each of their components.

Solution 2:[2]

Have a look at this library, widely used and customizable https://www.npmjs.com/package/react-native-dropdown-picker

Or, if you want a searchable dropdown, you can try this one: https://www.npmjs.com/package/react-native-searchable-dropdown

Solution 3:[3]

I ended up using react-native-modal-dropdown. It was easy to modify based on requirements.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tayyab Mazhar
Solution 2 Prerna Budhraja
Solution 3 Zephyr