Answer the question
In order to leave comments, you need to log in
How to make TextInput always in focus?
The page has a TextInput that works like a calculator. It is necessary that it be automatically in focus,
when entering the page and in the future, the keyboard does not disappear.
Answer the question
In order to leave comments, you need to log in
Well, firstly, TextInput has a property https://reactnative.dev/docs/textinput#autofocus
and secondly, there is a method https://reactnative.dev/docs/textinput#onblur for which you can hook on and use ref to focus on your field . I think in this way the user will always be in the focus of the input. But you must understand that he will not even be able to press the button.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question