Closed tiennguyen9988 closed 3 years ago
You can toggle using the focus() and blur() methods provided by the picker library and use the useRef hook
ref={refPicker}
Add that to your picker
and create a function to toggle using
refPicker.current.focus()
to focus
refPicker.current.blur()
to blur
hope this helps
this solution work also i expo with web?
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 ?