Native only
Tab bar
custom bottom tab bar: opaque tints, label, active dot under the label
function TabBarDemo() { const c = usePalette(); const [active, setActive] = React.useState(0); const tabs = [ { label: "Home", icon: HouseIcon }, { label: "Activity", icon: ListIcon }, { label: "Settings", icon: SettingsIcon }, ]; return ( <View role="tablist" aria-label="Sections" className="bg-background border-border w-full flex-row overflow-hidden rounded-lg border"> {tabs.map((t, i) => { const focused = i === active; const color = focused ? c.primary : c.mutedForeground; return <TabBarItem key={t.label} label={t.label} focused={focused} color={color} icon={tabIcon(t.icon)({ focused, color, size: 24 })} onPress={() => setActive(i)} />; })} </View> );}Usage
The kit tab bar: opaque tints, label, and an active dot under the label so selection is not colour-only. TabBarItem is exported for custom bars.
API
<Tabs tabBar={(p) => <TabBar {...p} />}><Tabs.Screen options={{ title, tabBarIcon: tabIcon(HouseIcon) }} /></Tabs>Get it
Already in every copy of the native kit:
import { TabBar, TabBarItem, tabIcon } from '@/components/kit/tab-bar';Details
- Exports
TabBar,TabBarItem,tabIcon- Packages
- lucide-react-native@^1.21.0, react-native-safe-area-context@~5.7.0
- Installs with
- @halftone-native/lib-haptics, @halftone-native/lib-palette-context, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- bottom tabs, tab bar, active dot, navigation bar, tab icon
- Registry JSON
- /r/native/tab-bar.json
Agents: the whole registry is at /llms.txt.