decord/source/292_usePressability.js

44 lines
1,000 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 292
// Function ID: 4488
// Name: usePressability
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 282]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 292 (usePressability)
2026-07-23 10:11:24 +00:00
import result from "result";
let closure_2;
let closure_3;
({ useEffect: closure_2, useRef: closure_3 } = result);
2026-07-20 16:05:17 +00:00
export default function usePressability(arg0) {
const importDefault = arg0;
2026-07-23 10:11:24 +00:00
let tmp = callback2(null);
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-07-23 10:11:24 +00:00
let tmp5 = importDefault(current[1]);
2026-07-20 16:05:17 +00:00
const prototype = tmp5.prototype;
tmp5 = new tmp5(arg0);
tmp.current = tmp5;
}
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-23 10:11:24 +00:00
let tmp = null != closure_0;
2026-07-20 16:05:17 +00:00
if (tmp) {
tmp = null != current;
}
if (tmp) {
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 ? (() => {
outer1_1.reset();
}) : undefined, items1);
2026-07-20 16:05:17 +00:00
let eventHandlers = null;
if (null != current) {
eventHandlers = current.getEventHandlers();
}
return eventHandlers;
};