0.1.0 • Published 4 years ago

@srfaytkn/react-native-background-timer v0.1.0

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
4 years ago

react-native-background-timer

Getting started

  • Requires pod install
npm install @srfaytkn/react-native-background-timer --save

Usage

import * as BackgroundTimer from "@srfaytkn/react-native-background-timer";

Interval

const taskId = BackgroundTimer.setInterval(() => {
    console.log("foo");
}, 1000);
BackgroundTimer.clearInterval(taskId);

Timeout

const taskId = BackgroundTimer.setTimeout(() => {
    console.log("bar");
}, 1000);
BackgroundTimer.clearTimeout(taskId);

Contributors

Inspired by the @ocetnik/react-native-background-timer

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago