NativeTabs renders the system tab bar instead of a tab bar drawn in JavaScript, so the tabs look and behave like the platform's own. It is not a drop-in replacement for JavaScript tabs: native tabs are held to platform behavior, while JavaScript tabs can be customized more freely. Switching means learning its element-based API and the limits each platform puts on it.

Key terms

  • NativeTabs: the tab layout exported by expo-router/native-tabs that renders the platform's tab bar.
  • NativeTabs.Trigger: the element that adds one route to the native tab bar, matched by its name prop.
  • Trigger.Icon: the icon element, with sf for SF Symbols on iOS, md for Material Symbols on Android and src for a custom image.
  • expo-symbols: the package that md icons need, an optional peer dependency of Expo Router since SDK 58.

A trigger for every tab

Import the layout from expo-router/native-tabs. SDK 54 to 57 used expo-router/unstable-native-tabs, which still exists in SDK 58, but every export from it is deprecated in favor of the new path.

Unlike a Stack, native tabs don't add routes automatically. Each tab needs a NativeTabs.Trigger in the layout, and that trigger needs a name that matches a route. An empty name throws an error saying the trigger "must have a name prop when used as a child of a Layout Route", and a trigger with no name matches no route, so Expo Router only logs a warning and the trigger adds no tab. There is no NativeTabs.Screen and no NativeTabs.Protected. NativeTabs has two static members, Trigger (with Label, Icon, Badge and VectorIcon) and BottomAccessory.

A trigger reads only its Label, Icon and Badge children and filters out every other element, so a custom view placed inside a trigger never reaches the tab bar. You can also render a NativeTabs.Trigger inside a tab's screen to change that tab's options from there, and in that position its name prop has no effect.

The class booking layout below declares three tabs. useUnreadAlerts is your own hook that returns a number.

On index, both icon props take a { default, selected } object, so the house outline becomes a filled house while the tab is selected. On alerts, the badge renders {String(unread)}, because Badge children are typed as a string.

Labels, icons and badges

Trigger.Label takes the label text as a string child. Leave it out and the tab uses the route name, and <NativeTabs.Trigger.Label hidden /> hides the label.

Trigger.Icon chooses one icon per platform by priority. On iOS, sf wins over xcasset, which wins over src. On Android, drawable wins over md, which wins over src. Writing sf and md on the same icon therefore gives iOS an SF Symbol and Android a Material Symbol, and the prop types accept that pair. sf is iOS only and md is Android only, so each one draws only on its own platform.

md comes with a dependency. Its type, AndroidSymbol, is imported from expo-symbols, which SDK 58 turned into an optional peer dependency of Expo Router. Install it before you use md icons, then rebuild any development build that uses them:

bash
npx expo install expo-symbols

Trigger.Badge with text shows that text, such as an unread count. An empty <NativeTabs.Trigger.Badge /> still shows a badge, with no text in it, which works as a plain "something new" mark. The doc comment on the Badge type says no badge appears without text, but Expo Router sends a blank value in that case so that the badge shows.

What each platform allows

  • Android shows at most 5 tabs, a limit that comes from the platform's Material Tabs component.
  • Native tabs can't be nested inside other native tabs, and rendering one inside another throws an error that points you to JavaScript tabs. JavaScript tabs can be nested inside native tabs.
  • Every tab screen renders when the navigator mounts, and you can't change that. JavaScript tabs, by contrast, render a screen on its first visit.
  • Native tabs draw no header of their own.
  • You can't measure the tab bar's height, because the bar can sit at the bottom, the top or the side of the screen depending on the device.
  • A FlatList doesn't get scroll-to-top or minimize-on-scroll.
  • Tabs are defined statically. Adding or removing tabs at runtime isn't supported, and changing which triggers are hidden at runtime remounts the navigator and resets its state. A hidden tab can't be navigated to in any way.
  • Safe areas differ by platform: on Android the screen gets the bottom inset for the tab bar, and on iOS the first ScrollView in a screen gets automatic content inset adjustment.

iOS 26 adds iOS-only features: a native search tab (role="search", iOS 26.1 and later), tab bar minimize behavior and NativeTabs.BottomAccessory, all of which need the app compiled with Xcode 26 or later. On iOS 26 and later the system also draws the tab bar background, so the backgroundColor prop of NativeTabs has no effect there.

Code Examples

tsx
// src/app/(tabs)/_layout.tsx
import { NativeTabs } from 'expo-router/native-tabs';

// Your own hook that returns the number of unread alerts
import { useUnreadAlerts } from '@/hooks/useUnreadAlerts';

export default function TabLayout() {
  const unread = useUnreadAlerts();

  return (
    <NativeTabs>
      <NativeTabs.Trigger name="index">
        <NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>
        <NativeTabs.Trigger.Icon
          sf={{ default: 'house', selected: 'house.fill' }}
          md={{ default: 'home', selected: 'home_filled' }}
        />
      </NativeTabs.Trigger>
      <NativeTabs.Trigger name="schedule">
        <NativeTabs.Trigger.Label>Schedule</NativeTabs.Trigger.Label>
        <NativeTabs.Trigger.Icon sf="calendar" md="calendar_month" />
      </NativeTabs.Trigger>
      <NativeTabs.Trigger name="alerts">
        <NativeTabs.Trigger.Label>Alerts</NativeTabs.Trigger.Label>
        <NativeTabs.Trigger.Badge>{String(unread)}</NativeTabs.Trigger.Badge>
      </NativeTabs.Trigger>
    </NativeTabs>
  );
}
✓ Completed