A dropdown that uses React Native's Picker for Android and ActionSheetIOS for iOS
yarn add react-native-picker-dropdown
or
npm install react-native-picker-dropdown --save
It uses the exact same API as React Native's Picker, but it shows a dropdown for iOS that opens an ActionSheetIOS with the items when clicked.
The only exception is that we have 2 style props:
-
textStyle
: used to customize the text and the arrow icon of the Picker. On Android, the arrow icon does not change and other styles are also not applied due to limitations on React Native'sPicker
component. -
style
: used to customize a view that we put around the picker.
Please create issues and send pull requests!