decord/source/1729_useEvent.js

33 lines
1 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1729
2026-07-25 08:10:48 +00:00
// Function ID: 19402
2026-07-20 16:05:17 +00:00
// Name: useEvent
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 1687]
2026-07-20 16:05:17 +00:00
// Exports: useEvent
// Module 1729 (useEvent)
2026-07-23 10:11:24 +00:00
import { useRef } from "result";
2026-07-20 16:05:17 +00:00
export const useEvent = function useEvent(pnpm_ReanimatedNativeStackScreenTsx1, closure_4, doDependenciesDiffer) {
if (arguments.length > 1) {
if (undefined !== arguments[1]) {
let items = arguments[1];
}
const tmp4 = useRef(null);
if (null === tmp4.current) {
2026-07-23 10:11:24 +00:00
const WorkletEventHandler = require(1687) /* WorkletEventHandlerNative */.WorkletEventHandler;
2026-07-20 16:05:17 +00:00
const prototype = WorkletEventHandler.prototype;
let workletEventHandler = new WorkletEventHandler(pnpm_ReanimatedNativeStackScreenTsx1, items);
let obj = { workletEventHandler };
tmp4.current = obj;
} else if (tmp) {
workletEventHandler = tmp4.current.workletEventHandler;
workletEventHandler.updateEventHandler(pnpm_ReanimatedNativeStackScreenTsx1, items);
obj = { workletEventHandler };
tmp4.current = obj;
}
return tmp4.current;
}
items = [];
};