SwipeUI

Native tabs preset

SwipeUI's tint, label and badge tokens and a matched SF Symbol and Material Symbol icon set for Expo Router's native tabs.

npx @swipeui/cli add native-tabs-preset
Variant
Preset
Material
Scheme
Feel
Interactive web drawing of the system tab bar. Native tabs, Liquid Glass and the lens render only on a device.

When to use it

  • Using Expo Router's native tabs, the system tab bar with Liquid Glass on iOS 26, styled with your SwipeUI tokens.
  • Apps that want SF Symbols on iOS and Material Symbols on Android from one matched icon set.
  • Keeping system behaviours such as minimise on scroll, search tabs and bottom accessories.
  • When accessibility should come straight from the platform's tab bar.

When not to use it

  • A bar shape the system can't draw, such as a notch or a centre action. Use the notch or action-morph bar instead.
  • React Navigation's JavaScript bottom tabs; native tabs are an Expo Router feature.
  • When you need pixel-identical bars on iOS and Android.

Installation

Run this from your app's root. If SwipeUI isn't set up yet, run npx @swipeui/cli init first; it sets up Uniwind, the theme tokens and the cn helper.

npx @swipeui/cli add native-tabs-preset
  • Adds components/swipeui/tab-bar/native-tabs-preset.ts.
  • Installs expo-router, expo-symbols, uniwind. In Expo apps it uses npx expo install so versions match your SDK.

Usage

app/(tabs)/_layout.tsx
import { NativeTabs } from 'expo-router/native-tabs';
import { nativeTabIcon, useNativeTabsTheme, NATIVE_TABS_SCROLL_OPTIONS } from '@/components/swipeui/tab-bar/native-tabs-preset';

export default function TabLayout() {
  const theme = useNativeTabsTheme();
  return (
    <NativeTabs {...theme} {...NATIVE_TABS_SCROLL_OPTIONS}>
      <NativeTabs.Trigger name="index">
        <NativeTabs.Trigger.Icon {...nativeTabIcon('home')} />
        <NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>
      </NativeTabs.Trigger>
      <NativeTabs.Trigger name="inbox">
        <NativeTabs.Trigger.Icon {...nativeTabIcon('inbox')} />
        <NativeTabs.Trigger.Label>Inbox</NativeTabs.Trigger.Label>
      </NativeTabs.Trigger>
    </NativeTabs>
  );
}

The preset is props and data, not wrapper components, because native tabs look for NativeTabs.Trigger, Icon, Label and Badge by type. Spread your own props after the theme to override any of them.

Use expo-router/native-tabs on SDK 58, or expo-router/unstable-native-tabs on SDK 57. The preset targets Expo Router; custom SwipeUI bars support both routers.

Icons: home, search, explore, library, inbox, messages, notifications, favorites, saved, cart, calendar, create, profile, account and settings, each an outline SF Symbol that fills when selected, paired with a Material Symbol.

What the system decides

  • On iOS 26 the system draws Liquid Glass and ignores the background colour; on iOS 18 and Android the preset's surface background applies.
  • Changing trigger visibility can remount the navigator and reset navigation state. Change it before mounting or while hidden.
  • Accessibility, Dynamic Type, haptics and right-to-left come from the system's own tab bar.

Search and persistent accessories

Spread NATIVE_SEARCH_TAB_OPTIONS on the search trigger. Automatic activation of its search field requires iOS 26.1+ and a nested stack with a native search bar. The role alone does not create a text field.

app/(tabs)/_layout.tsx
<NativeTabs.Trigger name="search" {...NATIVE_SEARCH_TAB_OPTIONS}>
  <NativeTabs.Trigger.Label>Search</NativeTabs.Trigger.Label>
</NativeTabs.Trigger>

For persistent controls, render Bottom accessory inside NativeTabs.BottomAccessory. Map NativeTabs.BottomAccessory.usePlacement() to its placement prop and provide inlineContent when the compact layout needs different controls. Keep playback and operation state above the native accessory slot.

Search, accessory placement and minimization are platform-specific system behavior. Native verification remains scheduled under Phase 7.9; browser examples and JavaScript bundles do not establish runtime support.

Composition and behavior

  • Maps your theme tokens onto NativeTabs colour props: tint, labels and badges.
  • Provides matched icon pairs: outline and filled SF Symbols with a Material Symbol for Android.
  • Exports SDK-specific options, including the search tab options.
  • Pairs with Bottom accessory for persistent controls.

Behavior and gestures

  • Tabs behave exactly like the system's: tap to switch, tap again to pop to the root, and minimise on scroll where iOS supports it.
  • A search tab can activate a native search field on iOS 26.1+ when its stack has a native search bar.
  • A bottom accessory can sit above the bar for persistent controls such as a mini player.
  • Changing which triggers are visible can remount the navigator, so set it before mounting.

Accessibility

  • Accessibility, Dynamic Type, haptics and right-to-left come from the system tab bar.
  • Icons are paired with labels, and the preset only accepts real symbol names.
  • Colours come from your tint, label and badge tokens, so contrast follows your preset.
  • On iOS 26 the system draws glass and ignores the background colour; elsewhere the surface colour applies.

Motion

  • Static on its own; any movement comes from the parent that animates it.
  • System motion only; your motion feel doesn't change native tab animations.

Performance

  • The bar is native; the preset only reads tokens and returns props.

Notes for AI

  • Spread the preset's colour props on NativeTabs and use its icon pairs for each trigger.
  • Use NATIVE_SEARCH_TAB_OPTIONS on the search trigger.

Compatibility

Runs onSupported
Expo SDK 57No, needs SDK 58
Expo SDK 58Yes
React Native CLI (with Expo modules)No, needs Expo Router
Expo GoYes
Expo RouterYes
React Navigation 7No, native tabs are Expo Router only
iOSYes
AndroidYes

This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.

Related items