Skip to main content

Tab Navigation

Tab navigation displays a tab bar at the bottom of the screen, allowing users to quickly switch between top-level screens.

Basic Tabs

Create a tab layout:
app/(tabs)/_layout.tsx
Add tab screens:
From the source (Tabs.tsx:1-9):

Configure Tabs

Customize tab appearance:
app/(tabs)/_layout.tsx

Tab Icons

Using Icon Libraries

Custom Icons

Tab Badge

Show notification badges:
app/(tabs)/_layout.tsx

Hide Tab Bar

Hide on Specific Screens

app/details.tsx

Hide Programmatically

Tab Press Handling

Custom Tab Press

Nested Navigation

Add stacks within tabs:
app/(tabs)/home/_layout.tsx

Dynamic Tabs

Conditional Tabs

app/(tabs)/_layout.tsx

Tab Bar Styling

Position and Appearance

Hide Labels

Custom Tab Bar

Common Patterns

Tab with Modal

app/(tabs)/_layout.tsx

Scrolling Header in Tab

app/(tabs)/home/index.tsx

Best Practices

Limit Tab Count

Use Clear Icons

Consistent Tab Order

Next Steps

Stack Navigation

Add stack navigation in tabs

Native Tabs

Use native iOS/Android tabs

Drawer Navigation

Alternative to tabs

Layouts

Understand tab layouts