This component should only be rendered inside a _layout.tsx file, where it will serve as the location that children will render for routes below the layout.
Tabs is simply a React Navigation Bottom Tabs view and accepts the same props as React Navigation.
For now, you do need to set the href option on each Tabs.Screen to match the route file name. The plan is to automate this in the future.
--clean.renderThe render prop swaps the default bottom tab bar for a component you control. Useful for rendering a sidebar on web, a top nav on tablets, or any tab UI that doesn’t fit a bottom bar.
render is platform-keyed ({ web?, ios?, android? }). The current platform’s component is picked at render time; if none matches, the default BottomTabBar is used. The render component receives the standard BottomTabBarProps from @react-navigation/bottom-tabs: state, descriptors, navigation, insets.
The global is overridden by <Tabs render={...}> or by passing tabBar={...} directly.
Edit this page on GitHub.