react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

Can't use custom icon with latest @react-native-picker/picker

Open fnando opened this issue 3 years ago • 3 comments

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:

  1. Use something like yarn add @react-native-picker/picker@^2.2.1
  2. Run react-native run-android in 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

CleanShot 2021-12-01 at 11 35 05@2x

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.

fnando avatar Dec 01 '21 19:12 fnando

Same issue. Any ideas?

vetalmon avatar Dec 29 '21 14:12 vetalmon

I solved this by adding useNativeAndroidPickerStyle prop and setting it to false. Then i styled with inputAndroid and worked fine.Hope it helps.

andreicioc133 avatar Jan 21 '22 10:01 andreicioc133