Skip to content

ivanzotov/react-native-begin-background-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-begin-background-task and add RNBeginBackgroundTask.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNBeginBackgroundTask.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import { beginBackgroundTask, endBackgroundTask } from 'react-native-begin-background-task';

// ...
const backgroundTaskId = await beginBackgroundTask();
// ...
await endBackgroundTask(backgroundTaskId)

About

React Native wrapper for beginBackgroundTask, iOS only

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published