Skip to content

Instantly share code, notes, and snippets.

@kaueDM
Last active September 19, 2017 17:35
Show Gist options
  • Save kaueDM/94f9da3956d1c317734ef87790d7b5e8 to your computer and use it in GitHub Desktop.
Save kaueDM/94f9da3956d1c317734ef87790d7b5e8 to your computer and use it in GitHub Desktop.
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.
(Saw setTimeout with duration 507914ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment