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

[IOS] Add a callback called when focus method is invoked #584

Open
davifelix5 opened this issue Sep 27, 2024 · 0 comments
Open

[IOS] Add a callback called when focus method is invoked #584

davifelix5 opened this issue Sep 27, 2024 · 0 comments

Comments

@davifelix5
Copy link

Hello, maintainers.

I am using the library with react-hook-form and my goal is to focus programmatically on my custom Picker UI for IOS using the setFocus method, which works by calling the element's ref. It works perfect on Android because of the focus/setFocus API, but unfortunately it is not possible to trigger anything in my IOS custom Picker UI after focus because I cannot know when the element is being focused.

Is it possible add a callback for IOS here? Is this a good approach? What do you think?

In my point of view, a patch like this would aggregate value because would allow developers to customize picker behavior on IOS without having to implement class components to redefine the focus method because of IOS behaviour.

Any thoughts?

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

1 participant