Native tabs action
A round action beside Expo Router's native tab bar, drawn by the system in Liquid Glass, that opens a sheet of quick actions or the action-morph glass menu.
npx @swipeui/cli add native-tabs-actionVariant
Preset
Material
Scheme
Feel
When to use it
- Native tabs with a create, compose or scan button beside the bar, drawn by the system in Liquid Glass like its search tab.
- A few quick actions behind that button: in a bottom sheet or in the action-morph glass menu that blooms out of the circle.
- Keeping the system bar's real Liquid Glass and lens while adding an action, instead of a custom bar.
When not to use it
- An app that also needs a native search tab on iOS 26: the action takes the search tab's slot there.
- A custom bar shape, such as a notch or a raised centre button: use the notch or action-morph bar.
- React Navigation's JavaScript bottom tabs: native tabs are an Expo Router feature.
Installation
Installs with a Pro licence
Everything on this page is public except the source. Founder pre-sale opens around 5 January 2027.
Usage
import { useCallback, useState } from 'react';
import { NativeTabs } from 'expo-router/native-tabs';
import {
NATIVE_TABS_SCROLL_OPTIONS,
nativeTabIcon,
useNativeTabsTheme,
} from '@/components/swipeui/tab-bar/native-tabs-preset';
import {
NativeActionMenu,
useNativeActionTab,
} from '@/components/swipeui/tab-bar/native-tabs-action';
import { QuickActionSheet } from '@/components/swipeui/tab-bar/quick-actions';
export default function TabsLayout() {
const theme = useNativeTabsTheme();
const [open, setOpen] = useState(false);
const openActions = useCallback(() => setOpen(true), []);
const action = useNativeActionTab('create', openActions);
const actions = [{ key: 'post', label: 'New post', onPress: createPost }];
return (
<>
<NativeTabs {...theme} {...NATIVE_TABS_SCROLL_OPTIONS} {...action.tabsProps}>
<NativeTabs.Trigger name="index">
<NativeTabs.Trigger.Icon {...nativeTabIcon('home')} />
<NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>
</NativeTabs.Trigger>
<NativeTabs.Trigger name="create" {...action.triggerProps}>
<NativeTabs.Trigger.Icon sf="plus" md="add" />
<NativeTabs.Trigger.Label>Create</NativeTabs.Trigger.Label>
</NativeTabs.Trigger>
</NativeTabs>
{/* sheet variant */}
<QuickActionSheet label="Create" open={open} onOpenChange={setOpen} actions={actions} />
{/* or the menu variant */}
<NativeActionMenu
placement={action.placement}
label="Create"
open={open}
onOpenChange={setOpen}
actions={actions}
/>
</>
);
}Render one of the two. app/(tabs)/create.tsx still exists for links, so make it redirect (<Redirect href="/" />). The menu draws in the shared overlay, so put OverlayProvider above the navigator.
Settings
| Setting | Default | What it does |
|---|---|---|
useNativeActionTab(name, onPress) | — | Returns triggerProps for the action's trigger, tabsProps for NativeTabs and the placement the system uses; pass a stable handler |
actions | — | The quick actions: key, label, icon, disabled and an onPress that may return a promise |
label | — | The sheet's title, or the menu's spoken name |
open, onOpenChange | — | Whether the sheet or menu is showing |
onActionError | — | Called with the error when an action rejects; its row turns into a retry |
placement, slot, anchor | estimate | Menu only: where the system drew the action, so the menu opens from it |
menuWidth | 180 | Menu only: the card's width |
snapPoints, engine | fits rows, native | Sheet only: where the sheet rests and how it is presented |
messages | English | retry, failed(label) and, for the menu, close |
Composition and behavior
- The action is a native tab that never becomes selected: its trigger is
disabled, so iOS and Android don't select it, and the navigator hears its press. - iOS 26: the action is the search tab (a native
UISearchTab), so the system draws it as a detached Liquid Glass circle beside the bar, with your icon and no title. An app then can't also have a native search tab. - iOS 27 and later: the action is also marked prominent, which keeps it detached while the bar minimises. This needs an app built with the iOS 27 SDK.
- Android and iOS 18: an ordinary tab with its icon and label.
- Shrink on scroll: with
NATIVE_TABS_SCROLL_OPTIONSthe system folds the bar to the current tab while scrolling down; the circle stays. For labels that fold to icons on your own terms, use the glass action bar. - sheet: a bottom sheet sized to its rows. menu: a drop leaves the circle's top edge and blooms into the glass menu; the system draws the circle, so it doesn't stretch.
- An action that returns a promise shows progress in its row; a failure turns the row into "Retry" and keeps the sheet or menu open; success closes it.
- See navigation patterns.
Behavior and gestures
- Tapping the action never selects its tab: the trigger is disabled natively and its tabPress still fires, which opens the menu or sheet.
- sheet: the platform's own sheet (Liquid Glass on iOS 26, Material 3 on Android) with the same rows.
- An action that returns a promise shows progress in its row; a failure turns the row into a retry and keeps the menu or sheet open; success closes it.
- menu: a drop leaves the top of the system's circle and blooms into the glass menu over a light scrim; tapping the circle again, the scrim, escape or Android's back lets it fall back in.
Accessibility
- The system tab bar reads the action with its label; the menu is announced as a menu and each action as a menu item.
- Focus moves into the menu and back when it closes; a failure is announced and the row reads "Retry, <action>".
- Give the trigger a clear label such as "Create"; iOS 26 shows only the icon in the circle but still speaks the label.
Motion
- Uses the
morph,overlayandpressmotion roles, so it follows your app's feel. Passmotionto tune this one instance. - The circle is drawn by the system, so it neither stretches nor turns into a cross; the drop leaves its top edge with the morph timing and blooms on the overlay spring.
- Closing folds on the morph spring and the drop falls back with the exit's accelerating ease, shrinking into the circle. The sheet uses the platform's motion.
- Under Reduce Motion the menu appears and disappears in place.
Performance
- The trigger props are memoised by the tab's name; the overlay is mounted only while the menu is open.
- A completion from an earlier opening is ignored.
Notes for AI
- Pass useNativeActionTab a stable handler (useCallback) and spread its tabsProps on NativeTabs and .triggerProps on that tab's NativeTabs.Trigger; give the trigger an icon and a label.
- Render QuickActionSheet (from quick-actions) for the sheet variant or NativeActionMenu for the menu variant after NativeTabs, with placement from useNativeActionTab; the menu needs OverlayProvider above the navigator.
- The action's route still exists for links, so make its screen redirect.
- iOS 27's prominent tab needs an app built with the iOS 27 SDK; older builds use the iOS 26 search slot where the system allows it.
Compatibility
| Runs on | Supported |
|---|---|
| Expo SDK 57 | No, needs SDK 58 |
| Expo SDK 58 | Yes |
| React Native CLI (with Expo modules) | No, needs Expo Router |
| Expo Go | Yes |
| Expo Router | Yes |
| React Navigation 7 | No, native tabs are Expo Router only |
| iOS | Yes |
| Android | Yes |
This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.