one
Version:
One is a new React Framework that makes Vite serve both native and web.
59 lines (57 loc) • 2.11 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all) __defProp(target, name, {
get: all[name],
enumerable: true
});
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
get: () => from[key],
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
});
}
return to;
};
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
value: true
}), mod);
var NativeTabs_exports = {};
__export(NativeTabs_exports, {
NativeTabs: () => NativeTabs,
default: () => NativeTabs_default
});
module.exports = __toCommonJS(NativeTabs_exports);
var import_Protected = require("../views/Protected.native.js");
var import_withLayoutContext = require("./withLayoutContext.native.js");
var NativeBottomTabNavigator = null;
try {
var mod = require("@bottom-tabs/react-navigation");
NativeBottomTabNavigator = mod.createNativeBottomTabNavigator().Navigator;
} catch (unused) {}
function createNativeTabs() {
if (!NativeBottomTabNavigator) {
throw new Error("NativeTabs requires @bottom-tabs/react-navigation and react-native-bottom-tabs.\nInstall: npx expo install @bottom-tabs/react-navigation react-native-bottom-tabs");
}
return Object.assign((0, import_withLayoutContext.withLayoutContext)(NativeBottomTabNavigator), {
Protected: import_Protected.Protected
});
}
var _nativeTabs = null;
var NativeTabs = new Proxy({}, {
get(_, prop) {
if (!_nativeTabs) _nativeTabs = createNativeTabs();
return _nativeTabs[prop];
},
apply(_, thisArg, args) {
if (!_nativeTabs) _nativeTabs = createNativeTabs();
return _nativeTabs.apply(thisArg, args);
}
});
var NativeTabs_default = NativeTabs;
//# sourceMappingURL=NativeTabs.native.js.map