Resetting the timer of a pluggable native idletimer widget when detecting user activity
0
Hi I am working on an idle timer pluggable native widget. There is one issue i am struggling with. If the idle timer is runnning/counting down it should be resetted when there is any user activity. Scrolling, pushing on buttons, navigating, swiping etc. I tried several options but panResponder should be the most preferable one. So when touching the screen for instance it will result in resetting the idletimer. Just what i want. But when pressing a button it will also reset the timer, but not executing the action of the button. The other way around when configuring the panResponder, the action is executed, but it won't reset the timer because it doesn't recognize the touchevent. Anyone has experiences with this? I 've been reading documents/pages on react-native but haven't found a good solution. It's a native pluggable widget (Typescript)