Fork me on GitHub
#cljsrn
<
2017-11-07
>
wojciech08:11:54

As far as I know, javascript thread doesn't run in the background, so JS / CLJS can't be used for background tasks

wojciech08:11:32

I remember there were some hacks around it (not sure how successful), but in general people do background stuff natively

vikeri09:11:57

@rowanharg I have an implementation of background timers for Android (It’s not as simple as setTimeout though): https://github.com/vikeri/react-native-background-job

rowanharg09:11:45

@vikeri thanks! It looks great. I actually just found it earlier, and bumped the issue on RN Feature request site. I'll have a shot with it. 👍

vikeri09:11:14

@rowanharg Thanks! Good luck!

rowanharg09:11:47

@wojciech - thanks for the info. Did anyone try this? https://www.npmjs.com/package/react-native-background-task Looks similar but uses react-native-background-fetch for ios.