-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[V2] [iOS] onSubmitEditing event for searchBar #3985
Comments
Have you found a solution for this? |
As a workaround I ended up using the Keyboard event listeners... that way when keyboardWillHide and the searchbar is not focused (which you know on search bar update) you know it's the moment to perform the "on search" code. |
Yeah, was thinking of doing the same, shame there isn't a cleaner way to implement this. Thank you! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
Issue Description
I'm using searchBar in iOS and it works as expected (native behavior).
I was wondering if there's a way of knowing when the user presses on 'Search' (Intro) from the keyboard? Sort of like onSubmitEditing for TextInput.
Steps to Reproduce / Code Snippets / Screenshots
I looked into searchBarUpdated but it doesn't really tell me when the user presses the intro key.
Environment
The text was updated successfully, but these errors were encountered: