react-native-idle-timer/index.js
ATNASGDWNGTH bc344737a1
feat: tag every call to disable the idle timer and expose static method for non react-native usage (#31)
add support for tagging calls and native code usage

---------

Co-authored-by: Marc Shilling <marcshilling@gmail.com>
2023-02-26 14:35:24 -05:00

8 lines
199 B
JavaScript

'use strict'
var { NativeModules } = require('react-native')
module.exports.setIdleTimerDisabled = (disabled, tag = "") => {
NativeModules.IdleTimerManager.setIdleTimerDisabled(disabled, tag);
}