hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
977 stars 172 forks source link

Open Dropdown on Icon Click #306

Open T-Pyat opened 2 weeks ago

T-Pyat commented 2 weeks ago

I am using react-native-element-dropdown and would like to be able to open the dropdown when clicking on a custom icon (like a "three dots" menu icon).

Is there a built-in way or recommended approach to programmatically open the dropdown when clicking on an external trigger (like an icon), rather than relying on the dropdown field itself?

TrejoCode commented 3 days ago

¿Really bro? @T-Pyat

Read the docs:

https://github.com/hoaphantn7604/react-native-element-dropdown?tab=readme-ov-file#method

"Method section" use a ref, and that's it.