decord/source/__polyfill/04xxx/module_4999.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

42 lines
1.1 KiB
JavaScript

// Module ID: 4999
// Function ID: 5000
// Dependencies: [19, 17, 4995]
// Exports: useTabsHost
// Module 4999
import RNSLog2 from "RNSLog" /* 4995 */;
import noop from "module_19" /* 19 */;
require = fn;
const findNodeHandle = fn(17).findNodeHandle;
export const useTabsHost = function useTabsHost(arg0) {
({ componentNodeRef: require, onTabSelected } = arg0);
noop = undefined;
noop = noop.useRef(-1);
const effect = noop.useEffect(() => {
if (null != ref.current) {
let num2 = findNodeHandle(tmp.current);
if (num2 == null) {
num2 = -1;
}
closure_2.current = num2;
} else {
closure_2.current = -1;
}
}, []);
const obj = { onTabSelected: null };
const items = [onTabSelected];
obj.onTabSelected = noop.useCallback((nativeEvent) => {
const RNSLog = RNSLog2.RNSLog;
let num = ref2.current;
if (num == null) {
num = -1;
}
RNSLog.log("TabsHost [" + num + "] onTabSelected: " + JSON.stringify(nativeEvent.nativeEvent));
if (onTabSelected != null) {
onTabSelected(nativeEvent);
}
}, items);
return obj;
};