react-native-picker-select
react-native-picker-select copied to clipboard
Can't use custom icon with latest @react-native-picker/picker
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:
- Use something like
yarn add @react-native-picker/picker@^2.2.1 - Run
react-native run-androidin an app that has the dropdown with a custom icon
Expected 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
- Device: Android Emulator, Google Pixel 6 with Android 12
- react-native-picker-select version: 8.0.4
- react-native version: 0.65.3
- expo sdk version: n/a
Reproduction and/or code sample
Couldn't figure out a way of creating a snack with @react-native-picker/picker@^2.2.1.
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.