Files
Schnappix/node_modules/react-native-gesture-handler/lib/module/ghQueueMicrotask.js
T

6 lines
414 B
JavaScript

"use strict";
// We check for typeof requestAnimationFrame because of SSR
// Functions are bound to null to avoid issues with scope when using Metro inline requires.
export const ghQueueMicrotask = typeof setImmediate === 'function' ? setImmediate.bind(null) : typeof requestAnimationFrame === 'function' ? requestAnimationFrame.bind(null) : queueMicrotask.bind(null);
//# sourceMappingURL=ghQueueMicrotask.js.map