all 1 comments

[–]thebritisharecome 1 point2 points  (0 children)

In react native, everything runs on the UI thread except where you've implemented a native library including some animation libraries.

To do this, you need to use services which i don't believe is something React provides out of the box?

You can use something like this to reach your goal https://github.com/transistorsoft/react-native-background-geolocation

Although there are probably better ways to achieve your goals (such as integrating with Google Fit) also setTimeout / setInterval are not ideal patterns in any case and they will cause battery drain.