Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
// Module ID: 4997
|
|
// Function ID: 4998
|
|
// Dependencies: [19, 17, 4993]
|
|
// Exports: useTabsHost
|
|
|
|
// Module 4997
|
|
import RNSLog2 from "RNSLog" /* 4993 */;
|
|
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;
|
|
};
|