react-native-user-inactivity
Version:
React Native component that notifies if the user is active or not
10 lines (9 loc) • 469 B
TypeScript
import { TimeoutHandler } from 'usetimeout-react-hook';
/**
* defaultBackgroundTimer implements the TimeoutHandler interface with the native timer
* functions available in the 'react-native-background-timer' package.
* This timer works in foreground as well as background, and should overcome
* the standard setTimeout/clearTimeout shortcomings.
*/
export declare const defaultBackgroundTimer: TimeoutHandler<void>;
export default defaultBackgroundTimer;