decord/source/__polyfill/00xxx/module_301.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

39 lines
905 B
JavaScript

// Module ID: 301
// Function ID: 302
// Dependencies: [19, 292]
// Exports: default
// Module 301
import _modDef292 from "module_292" /* 292 */;
import noop from "module_19" /* 19 */;
({ useInsertionEffect: c2, useRef: c3 } = noop);
export default function usePressability(arg0) {
closure_0 = arg0;
const tmp = React3(null);
if (tmp2) {
const tmp8 = new _modDef292(arg0);
tmp.current = tmp8;
}
const current = tmp.current;
const items = [arg0, current];
React2(() => {
let tmp2 = null != closure_0;
if (tmp2) {
tmp2 = null != current;
}
if (tmp2) {
current.configure(closure_0);
}
}, items);
const items1 = [current];
React2(() => null != current ? (() => {
navigation.reset();
}) : undefined, items1);
let eventHandlers = null;
if (null != current) {
eventHandlers = current.getEventHandlers();
}
return eventHandlers;
};