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

Timer warning in React Native #10

Open
jeaye opened this issue Mar 4, 2018 · 0 comments
Open

Timer warning in React Native #10

jeaye opened this issue Mar 4, 2018 · 0 comments

Comments

@jeaye
Copy link

jeaye commented Mar 4, 2018

When running re-frisk-remote on Android with React Native, I see the following warning in my logs:

ReactNativeJS: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issues/12981 for more info.
ReactNativeJS: (Saw setTimeout with duration 89532ms)

The duration isn't always the same, but it's always the same warning. Rather than setting a large timeout, it'll likely be necessary to use smaller, recursive timeouts to avoid this warning (and the issues it causes).

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

1 participant