Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Dropdown on Icon Click #306

Open
T-Pyat opened this issue Oct 5, 2024 · 1 comment
Open

Open Dropdown on Icon Click #306

T-Pyat opened this issue Oct 5, 2024 · 1 comment

Comments

@T-Pyat
Copy link

T-Pyat commented Oct 5, 2024

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
Copy link

¿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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants