react-native-user-inactivity
react-native-user-inactivity copied to clipboard
Input from keyboard is not considered as an action
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?
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.
I can confirm this is happening on iOS 14.3 Simulator
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 👀