Answer the question
In order to leave comments, you need to log in
How to avoid problem with onBlur in input when closing screen in React native?
Welcome all. Faced a problem. There is a screen, when switching to it, autofocus on the input is triggered, on which the onBlur event handler hangs, at which a request for backing flies. So the problem is that if I just want to exit this screen and not click anything, then before closing the screen, the focus drops from the input and therefore the onBlur event fires and an unnecessary request flies, how can I avoid this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question