Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
49 lines
1.7 KiB
JavaScript
49 lines
1.7 KiB
JavaScript
// Module ID: 1782
|
|
// Function ID: 1783
|
|
// Dependencies: [19, 1667, 1662, 1648, 1783, 1640]
|
|
// Exports: useHandler
|
|
|
|
// Module 1782
|
|
import _mod1640 from "module_1640" /* 1640 */;
|
|
import _mod1662 from "module_1662" /* 1662 */;
|
|
import freezeObjectInDev from "freezeObjectInDev" /* 1667 */;
|
|
import _mod1783 from "module_1783" /* 1783 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
({ useEffect: c2, useRef: c3 } = noop);
|
|
|
|
export const useHandler = function useHandler(memoizedGestureCallbacks, items10) {
|
|
const tmp = React3(null);
|
|
closure_0 = tmp;
|
|
if (null === tmp.current) {
|
|
const obj2 = { context: freezeObjectInDev.makeShareable({}), savedDependencies: [] };
|
|
tmp.current = obj2;
|
|
}
|
|
React2(() => () => {
|
|
closure_1_0.current = null;
|
|
}, []);
|
|
({ context, savedDependencies } = tmp.current);
|
|
for (const key10024 in arg0) {
|
|
let tmp14 = require;
|
|
let obj8 = _mod1662;
|
|
if (obj8.isWorkletFunction(arg0[key10024])) {
|
|
continue;
|
|
} else {
|
|
let tmp5 = new.target;
|
|
let str = "Passed a function that is not a worklet. Please provide a worklet function.";
|
|
let tmp6 = new.target;
|
|
let reanimatedError = new tmp14(1648).ReanimatedError("Passed a function that is not a worklet. Please provide a worklet function.");
|
|
throw reanimatedError;
|
|
}
|
|
}
|
|
const dependencies = _mod1783.buildDependencies(items10, memoizedGestureCallbacks);
|
|
tmp.current.savedDependencies = dependencies;
|
|
const obj5 = { context, doDependenciesDiffer: !_mod1783.areDependenciesEqual(dependencies, savedDependencies), useWeb: null };
|
|
let isWebResult = _mod1640.isWeb();
|
|
if (!isWebResult) {
|
|
isWebResult = _mod1640.isJest();
|
|
const tmp9Result = _mod1640;
|
|
}
|
|
obj5.useWeb = isWebResult;
|
|
return obj5;
|
|
};
|