react-timeout icon indicating copy to clipboard operation
react-timeout copied to clipboard

'react-native-background-timer' combination?

Open afilp opened this issue 7 years ago • 1 comments

Will this library work well in combination with that library?

https://github.com/ocetnik/react-native-background-timer

Or to rephrase, should react-timeout care about background timeouts/intervals by itself? How does this behave when the app goes to the background? I assume the timers are paused?

afilp avatar Jan 07 '18 17:01 afilp

This library just wraps the native timing functions. It looks like your library has its own timer implementation in native code so they might behave differently. You can use both libraries in the same app, but this library can't be used for background tasks (it can only run when the app is active).

The timers are paused when the app goes to the background and are resumed when the app is resumed. That is my experience with React Native at least.

plougsgaard avatar Jan 08 '18 12:01 plougsgaard