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 26Android
Native componentTab bar controller (UITabBarController), the system's own tab barNavigation bar over its screens: the kit's Tab Bar
LookThe 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

PropTypeDefaultDescription
valuestring—The selected tab (controlled); use with onValueChange
defaultValuestring—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
systembooleantrue where react-native-screens exports TabsiOS: 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 selectionColorThe 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
accessoryReactNode | ((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
childrenReactNode—TabView.Tab elements
styleStyleProp<ViewStyle>—Style of the view, which fills its parent (flex: 1)
testIDstring—Test id

TabView.Tab

PropTypeDefaultDescription
valuestring—The value of the tab (required)
labelstring—The label under the symbol, and the tab's accessible name (required)
iconReactNode—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
badgeReactNode—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
disabledbooleanfalseThe tab cannot be selected
onPress() => void—Called when a person selects the tab
childrenReactNode—The tab's screen
testIDstring—Test id of the tab's item

useTabViewScreen

PropTypeDefaultDescription
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
bottomnumber—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.