3.0.0 • Published 12 months ago
react-native-use-timestamp v3.0.0
react-native-use-timestamp
This package provides a hook to give the current timestamp, but only when the application is not running any interactions.
Installation
yarn add react-native-use-timestamp
Even though this package is meant for the react-native
ecosystem, it has bundles for CJS, ES, UMD, and modern browsers.
Usage
// Runs callback every number_of_milliseconds
const now = useInaccurateTimestamp(callback, { every: number_of_milliseconds })