one
Version:
One is a new React Framework that makes Vite serve both native and web.
29 lines (28 loc) • 1.15 kB
JavaScript
import React from "react";
import { Protected } from "../views/Protected.native.js";
import { Screen } from "../views/Screen.native.js";
import { withLayoutContext } from "./withLayoutContext.native.js";
var NativeBottomTabNavigator = null;
try {
var mod = require("@bottom-tabs/react-navigation");
NativeBottomTabNavigator = mod.createNativeBottomTabNavigator().Navigator;
} catch (unused) {}
var missingNativeTabsMessage = "NativeTabs requires @bottom-tabs/react-navigation and react-native-bottom-tabs.\nInstall: npx expo install @bottom-tabs/react-navigation react-native-bottom-tabs";
var MissingNativeTabs = /* @__PURE__ */React.forwardRef(function MissingNativeTabs2() {
throw new Error(missingNativeTabsMessage);
});
function createNativeTabs() {
if (!NativeBottomTabNavigator) {
return Object.assign(MissingNativeTabs, {
Protected,
Screen
});
}
return Object.assign(withLayoutContext(NativeBottomTabNavigator), {
Protected
});
}
var NativeTabs = createNativeTabs();
var NativeTabs_default = NativeTabs;
export { NativeTabs, NativeTabs_default as default };
//# sourceMappingURL=NativeTabs.native.js.map