Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
41 lines
1.5 KiB
JavaScript
41 lines
1.5 KiB
JavaScript
// Module ID: 6714
|
|
// Function ID: 6715
|
|
// Dependencies: [19, 6693, 6704, 6715, 6716, 6717, 6718]
|
|
// Exports: useDetectorUpdater
|
|
|
|
// Module 6714
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import _modDef6704 from "module_6704" /* 6704 */;
|
|
import dropHandlers from "dropHandlers" /* 6716 */;
|
|
import attachHandlers from "attachHandlers" /* 6717 */;
|
|
import _mod6718 from "module_6718" /* 6718 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
_mod19.useCallback;
|
|
|
|
export const useDetectorUpdater = function useDetectorUpdater(current, current2, gesturesToAttach, gesture, webEventHandlers) {
|
|
_require = current;
|
|
const preparedGesture = current2;
|
|
dependencyMap = gesturesToAttach;
|
|
const forceRender = require("convertToHandlerTag").useForceRender();
|
|
const items = [forceRender, gesture, gesturesToAttach, current2, current, webEventHandlers];
|
|
return gesture((arg0) => {
|
|
const tmp3 = _modDef6704(current.viewRef);
|
|
if (tmp3 === current.previousViewTag) {
|
|
if (!obj.needsToReattach(preparedGesture, gesturesToAttach)) {
|
|
if (!arg0) {
|
|
_mod6718.updateHandlers(preparedGesture, gestureConfig, gesturesToAttach);
|
|
const tmp5Result = _mod6718;
|
|
}
|
|
}
|
|
}
|
|
dropHandlers.dropHandlers(preparedGesture);
|
|
attachHandlers.attachHandlers({ preparedGesture, gestureConfig, gesturesToAttach, webEventHandlersRef, viewTag: tmp3 });
|
|
if (tmp3 !== current.previousViewTag) {
|
|
tmp2.previousViewTag = tmp3;
|
|
tmp2.forceRebuildReanimatedEvent = true;
|
|
forceRender();
|
|
}
|
|
}, items);
|
|
};
|