33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.NativeTabs = void 0;
|
|
// We need this file to re-export the navigator
|
|
// Otherwise rsc would fail
|
|
const NativeBottomTabsNavigator_1 = require("./NativeBottomTabsNavigator");
|
|
const NativeTabTrigger_1 = require("./NativeTabTrigger");
|
|
const elements_1 = require("./common/elements");
|
|
const hooks_1 = require("./hooks");
|
|
const BottomAccessory = Object.assign(elements_1.NativeTabsBottomAccessory, {
|
|
usePlacement: hooks_1.usePlacement,
|
|
});
|
|
/**
|
|
* The component used to create native tabs layout.
|
|
*
|
|
* @example
|
|
* ```tsx app/_layout.tsx
|
|
* import { NativeTabs } from 'expo-router/unstable-native-tabs';
|
|
*
|
|
* export default function Layout() {
|
|
* return (
|
|
* <NativeTabs>
|
|
* <NativeTabs.Trigger name="home" />
|
|
* <NativeTabs.Trigger name="settings" />
|
|
* </NativeTabs>
|
|
* );
|
|
* }
|
|
* ```
|
|
*/
|
|
exports.NativeTabs = Object.assign((props) => {
|
|
return <NativeBottomTabsNavigator_1.NativeTabsNavigatorWrapper {...props}/>;
|
|
}, { Trigger: NativeTabTrigger_1.NativeTabTrigger, BottomAccessory });
|
|
//# sourceMappingURL=NativeTabs.js.map
|