Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout not reset when user typing on keyboard #2

Closed
Bigdragon13th opened this issue Feb 26, 2018 · 8 comments
Closed

Timeout not reset when user typing on keyboard #2

Bigdragon13th opened this issue Feb 26, 2018 · 8 comments

Comments

@Bigdragon13th
Copy link

In my app, there's a textinput inside UserInactivity element. And when user typing in textinput, UserInactivity doesn't reset the timeout and therefore trigger onInactivity even if the app is not technically inactive.

@Bigdragon13th
Copy link
Author

Also, clicking buttons doesn't reset timeout as well.

@jkomyno
Copy link
Owner

jkomyno commented Feb 26, 2018

Thanks! It would be great if you could link a Github repository with a minimal reproducible example with the above issue, to speed up testing and bug fixing

@alan-lam-decathlon
Copy link

+1

@alan-lam-decathlon
Copy link

I added a call to this.setIsActive() inside the onStartShouldSetPanResponderCapture function, and this seems to work for the button clicks.

@BlagojeV93
Copy link

Any updates for TextInput typing?

@jkomyno
Copy link
Owner

jkomyno commented Sep 11, 2018

@Bigdragon13th @alan-lam-decathlon please check the version in the development branch. It's published on npm as [email protected]

@jkomyno
Copy link
Owner

jkomyno commented Sep 11, 2018

@Bigdragon13th I just had the opportunity to verify that the approach used by this library only works with pure JS Views/Components. Unfortunately, React Native doesn't seem to offer ways of knowing whenever a native component has been touched or not. For instance, native Alerts or TextInputs aren't catched by PanResponder's methods, and I couldn't find other alternatives. So I guess that cases aren't supported :(

@ManigandanRaamanathan
Copy link

@jkomyno could you please provide us a reference which we can manually call it whenever the alert or keyboard component is used by us? it will be helpful if you provide code snippet for creating our own reference to it. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants