Open fnando opened 2 years ago
Same issue. Any ideas?
I solved this by adding useNativeAndroidPickerStyle prop and setting it to false. Then i styled with inputAndroid and worked fine.Hope it helps.
Actually you can hide Picker using style and wrap the Picker by Pressable or any other component.
Describe the bug
Upgrading to
@react-native-picker/picker
's latest version prevents from using a custom icon in Android, because it never hides the original icon.To Reproduce
Steps to reproduce the behavior:
yarn add @react-native-picker/picker@^2.2.1
react-native run-android
in an app that has the dropdown with a custom iconExpected behavior
Render just the custom icon, just like it does when using an older
@react-native-picker/picker
version (e.g.1.9.11
).Screenshots
Additional details
Reproduction and/or code sample
Couldn't figure out a way of creating a snack with
@react-native-picker/picker@^2.2.1
.