react-native-begin-background-task
v0.1.0
Published
React Native wrapper for beginBackgroundTask, iOS only
Maintainers
Readme
react-native-begin-background-task
Getting started
$ npm install react-native-begin-background-task --save
Mostly automatic installation
$ react-native link react-native-begin-background-task
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-begin-background-taskand addRNBeginBackgroundTask.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNBeginBackgroundTask.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Usage
import RNBeginBackgroundTask from 'react-native-begin-background-task';
// TODO: What to do with the module?
RNBeginBackgroundTask;