decord/source/__polyfill/05xxx/module_5083.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

42 lines
1.1 KiB
JavaScript

// Module ID: 5083
// Function ID: 5084
// Dependencies: [19, 17, 5079]
// Exports: useTabsHost
// Module 5083
import RNSLog2 from "RNSLog" /* 5079 */;
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;
};