react-native-user-inactivity icon indicating copy to clipboard operation
react-native-user-inactivity copied to clipboard

Input from keyboard is not considered as an action

Open AndreyGalkin opened this issue 3 years ago • 4 comments

AndreyGalkin avatar Nov 08 '21 11:11 AndreyGalkin

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?

jkomyno avatar Nov 08 '21 22:11 jkomyno

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.

AndreyGalkin avatar Nov 09 '21 16:11 AndreyGalkin

I can confirm this is happening on iOS 14.3 Simulator

AlbertoLopSie avatar Jun 29 '22 14:06 AlbertoLopSie

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 👀

kirillzyusko avatar Jan 08 '24 13:01 kirillzyusko