38 lines
1,011 B
TypeScript
38 lines
1,011 B
TypeScript
// Module ID: 6459
|
|
// Function ID: 6460
|
|
// Name: RunAfterInteractionsUtils
|
|
// Dependencies: [17, 2046, 2]
|
|
// Exports: runAfterInteractions
|
|
|
|
// Module 6459 (RunAfterInteractionsUtils)
|
|
import react_native from "react-native" /* 17 */;
|
|
import Timers from "Timers" /* 2046 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
function runAfterInteractions(arg0, MINUTE) {
|
|
let closure_0 = arg0;
|
|
let num = MINUTE;
|
|
if (MINUTE === undefined) {
|
|
num = 2000;
|
|
}
|
|
let closure_1 = InteractionManager.runAfterInteractions(() => {
|
|
delayedCall.cancel();
|
|
closure_0();
|
|
});
|
|
const delayedCall = new Timers.DelayedCall(num, () => {
|
|
closure_1.cancel();
|
|
closure_0();
|
|
});
|
|
delayedCall.delay();
|
|
return {
|
|
cancel() {
|
|
delayedCall.cancel();
|
|
closure_1.cancel();
|
|
}
|
|
};
|
|
}
|
|
const InteractionManager = react_native.InteractionManager;
|
|
const result = size.fileFinishedImporting("utils/native/RunAfterInteractionsUtils.tsx");
|
|
|
|
export default { runAfterInteractions };
|
|
export { runAfterInteractions };
|