jasonfulldev-react-native-begin-background-task
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@alexandersandberg/react-native-begin-background-task

⚠️ Note: This only works on iOS and will be ignored on other platforms.

Installation

npm i @alexandersandberg/react-native-begin-background-task

then...

npx pod-install

Usage

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

// ...

const backgroundTaskId = await beginBackgroundTask();

// Your task that you want to keep running if the app goes to the background...

await endBackgroundTask(backgroundTaskId)

/jasonfulldev-react-native-begin-background-task/

    Package Sidebar

    Install

    npm i jasonfulldev-react-native-begin-background-task

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    13.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • jasongm