Tab View
Tabs with their screens: the system's own tab bar on iOS, the kit's elsewhere.
import { TabView } from "@plexui/react-native"For a bar the app places over its own screens, use Tab Bar.
Examples
Overview
Platforms
| iOS 26 | Android | |
|---|---|---|
| Native component | Tab bar controller (UITabBarController), the system's own tab bar | Navigation bar over its screens: the kit's Tab Bar |
| Look | The system's glass capsule, lens, search circle and badges, the tabs' Plex UI icons as template images and the theme's face; the kit's Tab Bar without react-native-screens or with system={false} | The kit's glass capsule of tabs |
In a browser the view draws the kit's Tab Bar over the screens, as on Android.
API
TabView
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The selected tab (controlled); use with onValueChange |
defaultValue | string | — | The selected tab when it is first rendered; the first tab when there is none |
onValueChange | (value: string) => void | — | Called with the value of the tab a person selects; a value the app keeps sends the system's bar back to it |
system | boolean | true where react-native-screens exports Tabs | iOS: the system's own tab bar (UITabBarController through react-native-screens); false draws the kit's Tab Bar over the screens, as Android and the web always do |
labels | "visible" | "hidden" | "visible" | hidden shows the tabs by their symbols alone; each label stays its tab's accessible name |
selectionColor | "primary" | "accent" | the ThemeProvider's selectionColor | The selected tab's color: primary, the label color, or accent |
badgeColor | "danger" | "accent" | — | The badges' color: iOS's red, or the accent; a tab's own badgeColor wins |
accessory | ReactNode | ((placement: "regular" | "inline") => ReactNode) | — | Content in a glass capsule over the tabs (iOS 26's bottom accessory); minimized, beside them |
minimizeBehavior | "never" | "onScrollDown" | "never" | iOS: onScrollDown minimizes the bar while a screen scrolls down and expands it when it scrolls back up |
children | ReactNode | — | TabView.Tab elements |
style | StyleProp<ViewStyle> | — | Style of the view, which fills its parent (flex: 1) |
testID | string | — | Test id |
TabView.Tab
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The value of the tab (required) |
label | string | — | The label under the symbol, and the tab's accessible name (required) |
icon | ReactNode | — | The symbol, a Plex UI icon; a search tab without one shows the kit's magnifier |
role | "search" | — | The search tab, in a glass circle of its own at the trailing end |
badge | ReactNode | — | A count or a short word over the symbol; true draws an empty capsule, 0 shows none |
badgeColor | "danger" | "accent" | — | The badge's color, over the view's badgeColor |
disabled | boolean | false | The tab cannot be selected |
onPress | () => void | — | Called when a person selects the tab |
children | ReactNode | — | The tab's screen |
testID | string | — | Test id of the tab's item |
useTabViewScreen
| Prop | Type | Default | Description |
|---|---|---|---|
scrollProps | { onScroll?, scrollEventThrottle? } | — | For a screen's ScrollView: the kit's bar minimizes as it scrolls; empty under the system's bar, which watches the scroll itself |
bottom | number | — | The room the kit's bar takes under a screen, up to its highest capsule as it stands expanded (held while it minimizes, so a list scrolled to its end stays put); 0 under the system's bar, whose room contentInsetAdjustmentBehavior="automatic" takes |
On iOS the bar is UIKit's, so VoiceOver reads it as a native tab bar: each tab by its label, its badge after it, the selected one as selected. The kit's Tab Bar is a tab list named Tabs, each tab a tab with its selected state.