decord/source/301_usePressability.js

42 lines
933 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 301
// Function ID: 302
2026-07-20 16:05:17 +00:00
// Name: usePressability
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 292]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 301 (usePressability)
import noop from "noop";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let obj1;
({ useInsertionEffect: obj1, useRef: c3 } = noop);
2026-07-20 16:05:17 +00:00
export default function usePressability(arg0) {
const importDefault = arg0;
2026-07-29 08:29:29 +00:00
const tmp = callback2(null);
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-07-29 08:29:29 +00:00
const tmp8 = new importDefault(current[1])(arg0);
tmp.current = tmp8;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
current = tmp.current;
2026-07-20 16:05:17 +00:00
const items = [arg0, current];
callback(() => {
2026-07-29 08:29:29 +00:00
let tmp2 = null != closure_0;
if (tmp2) {
tmp2 = null != current;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp2) {
2026-07-23 10:11:24 +00:00
current.configure(closure_0);
2026-07-20 16:05:17 +00:00
}
}, items);
const items1 = [current];
2026-07-23 10:11:24 +00:00
callback(() => null != current ? (() => {
2026-07-29 08:29:29 +00:00
navigation.reset();
2026-07-23 10:11:24 +00:00
}) : undefined, items1);
2026-07-20 16:05:17 +00:00
let eventHandlers = null;
if (null != current) {
eventHandlers = current.getEventHandlers();
}
return eventHandlers;
};