lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 497 forks source link

togglePicker() not working on android #456

Closed tiennguyen9988 closed 1 week ago

tiennguyen9988 commented 2 years ago

Describe the bug
I need trigger open Picker from button. I used togglePicker and it's nice on ios but not working on android. Please help me any solution ?

Additional details

tiennguyen9988 commented 2 years ago

I solved this problem with the solution:

NazimMertBilgi commented 2 years ago

@amos80m thank u, its worked.

Moistbobo commented 2 years ago

I've created a patch for those who use patch-package but don't want to fork the repo:

(this is just the index.js from @tiennguyen9988 's forked version) https://gist.github.com/Moistbobo/2b4bbc5a4a4a0b4c405b44024b5b8c82

shoki61 commented 1 year ago

https://github.com/lawnstarter/react-native-picker-select/issues/424#issuecomment-851065179 this solution worked

lfkwtz commented 1 week ago

22