New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-set-timer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-set-timer

setInterval and setTimeout that work even if the app is running in the background

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

react-native-set-timer

This library provides setTimeout and setInterval implementations that keep working even if the app is running in the background or the screen is locked.

Features

  • Clear and simple API

Install

yarn add react-native-set-timer

Usage

import Timer from "react-native-set-timer";

// Start a timer 
const intervalId = Timer.setInterval(() => console.log(""), 500);

// Cancel the timer 
Timer.clearInterval(intervalId);

// Start a timer t
const timeoutId = Timer.setTimeout(() => console.log("tic"), 500);

// Cancel the timer 
Timer.clearTimeout(timeoutId);

Keywords

react-native

FAQs

Package last updated on 05 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts