Created
January 5, 2018 21:09
-
-
Save billmalarky/39c249c6e1be2e6d01e73ddd5c5f4d40 to your computer and use it in GitHub Desktop.
Easy OS Background Tasks in React Native - componentDidMount() snippet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidMount() { | |
BackgroundTask.schedule(); // Schedule the task to run every ~15 min if app is closed. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment