I'm writing a timer app using react native on android in clojurescript (using reagent hopefully not important).
I have a TextInput
where I accept text from the user to name the timers. Whenever my timer ticks, the entire android application re-renders and I lose focus on the TextInput
. I am currently using onChangeText
to save the characters I am typing, is there a way to keep focus on the text input while the timer is ticking?.
Thanks.
View.requestFocus();
? And I do not understand why "application re-renders" on each tick. – Radiolocation