Input from keyboard is not considered as an action
AndreyGalkin opened this issue · 4 comments
AndreyGalkin commented
Input from keyboard is not considered as an action
jkomyno commented
Hi, can you please give me more details?
Are you on Android or iOS? Which version?
Are you using a physical device or an emulated one?
Do you have any reproducible code you can share?
AndreyGalkin commented
Hi
Tested on iOS 15, both simulator and device.
Actually, it's impossible to share the code.
But the main problem is when you do the input in a text field via the system keyboard - onAction
is fired, right after the previous activity timeout.
AlbertoLopSie commented
I can confirm this is happening on iOS 14.3 Simulator
kirillzyusko commented
You can use react-native-keyboard-controller
and its useFocusedInputHandler hook with onChangeText
handler to intercept any keyboard touches - and from there you can reset your timer 👀