SwipeUI
DocsGuides

Navigation patterns

Choosing native tabs, custom bars, top tabs, headers and accessories for React Native navigation.

Choose navigation by the job: destinations, actions, within-screen sections and short contextual tasks.

Tabs for top-level destinations

Use a tab bar when an app has three to five places people move between all the time, such as Home, Search, Library and Profile. Each tab keeps its own history, so switching back returns people where they were.

  • Two destinations: a segmented control at the top of one screen is often enough.
  • Six or more: keep the four most used as tabs and move the rest to a Profile or More screen. Keep less-used destinations behind a named More screen.

Start with native tabs

Expo Router's native tabs are the system's own tab bar, and the native tabs preset (free) styles them with your tokens. On iOS 26 and later only the system bar draws real Liquid Glass and the lens that slides between tabs, minimises on scroll and carries a bottom accessory; accessibility, Dynamic Type and right-to-left come from the platform. Use it unless you need a shape the system can't draw.

The system owns the bar's shape. You choose icons, labels, colours, badges, the search tab, minimise on scroll and the accessory, but not the corner radius, height, a notch or a raised button. iOS 18 and earlier show the full-width bar and Android shows the Material bar. Changing trigger visibility can remount the navigator and reset state, so change it before mounting or while hidden. See the native-tabs support guidance.

An action beside native tabs

Native tabs action puts a create, compose or scan button beside the system bar. iOS 26 draws it as a detached Liquid Glass circle (it takes the search tab's slot), iOS 27 builds mark it prominent, and Android and iOS 18 show an ordinary tab. It never becomes selected: tapping it opens a bottom sheet or the action-morph glass menu, one variant each. The system shrinks the bar on scroll its own way.

For full control over that shrink, the Pro glass action bar draws the capsule and the circle itself: scrolling down folds the labels away to icons and narrows the capsule, scrolling up brings them back.

Every bar with a + action (native tabs action, glass action, action morph, notch) can open its quick actions in either of two ways: the glass menu blooming out of the button, or a bottom sheet.

Custom bars for custom shapes

You wantUse
A notch or cradle around a centre actionNotch
A centre action that opens a quick-action menuAction morph
A plain bar for React Navigation, restyled freelyBasic (free)

Custom bars support both routers and plug into the tabBar prop of Expo Router's JavaScript tabs and React Navigation's bottom tabs.

Actions are not destinations

A "Create" or "Scan" button isn't a place, so it should never select a tab. On native tabs use native tabs action; on a custom bar, the action-morph bar and the notch bar give it a centre button that calls your code, for example to open a sheet or a modal route, while the tab bar keeps showing where people are.

Sheets for short tasks

Use a sheet for something quick that relates to the current screen: sorting, filtering, sharing or confirming. People can see what's behind it and swipe it away. A task with several steps, or one that needs the keyboard for a while, deserves a full screen or a modal route.

Hiding the tab bar

Hide the bar while people type (every SwipeUI bar does this for the keyboard) and on immersive screens such as a photo viewer or a checkout, with tabBarStyle: { display: 'none' } on that screen. Don't hide it on ordinary screens just to gain space; native tabs can minimise on scroll instead of disappearing.

Building your own bar

Custom bars share tab-bar-core and render each tab with TabBarTab from tab-bar-icon, which you can use in a bar of your own. Every bar takes messages to replace its spoken wording, and each floating bar exports a height helper, such as notchTabBarHeight(insets.bottom), for padding scroll content. Expo Router 58 supplies emitter/navigateToTab; React Navigation supplies navigation. Spread the navigator props unchanged. The core preserves preventable tabPress, long presses, labels, badges and keyboard policy. Actions invoke callbacks independently from routes.

Sections and paging

Use free top tabs for sections within a screen. It combines a label strip with horizontal pages, controlled or uncontrolled selection, icons and badges, and an underline or pill indicator. Use fit="equal" for two to four short labels and the default scrolling strip for more. Long label strips may scroll; ordinary navigation controls must keep their target sizes.

Headers and accessories

Use the large-title preset for native-stack system behavior. Scrollable content needs automatic inset adjustment. For a custom header, share useHeaderScroll between collapsing title or hero and its Animated.ScrollView. Compose its handler with useTabBarScrollHandler using Reanimated useComposedEventHandler when one scroll drives both. Header search is a top bar with a search capsule that opens in place; pass it scrollY for its hairline.

Every SwipeUI bar with a selection indicator lets a finger drag the selection to another tab. The motion comes from tab-bar-core's useTabIndicator, so it needs GestureHandlerRootView at the app root; set scrub= for taps only.

SDK 58 native tabs support a search-role trigger and bottom accessory placement. SDK 57 uses expo-router/unstable-native-tabs. Automatic search activation needs iOS 26.1+. Keep accessory business state above the native slot; map its regular/inline placement into Bottom accessory. Custom bars reserve their own accessory/content clearance. Native support is platform-specific, not a guarantee that every system behavior exists on Android or React Navigation.

Responsive and accessible navigation

Measure the available container, preserve selection on rotation/resize and keep 44pt targets. Mirror logical ordering in RTL while retaining physical inset/anchor coordinates. Keep complete spoken labels even when visual labels collapse. Reduce Motion removes decorative travel; Reduce Transparency selects solid materials. Verify native gestures, VoiceOver/TalkBack and large text on devices; browser examples are separate evidence.

On this page