# Bottom Nav — React Native component for Expo

> A tab bar whose indicator stretches between tabs, leading edge first.

Bottom navigation in five looks — minimal dot, floating capsule, expanding pill, notched centre FAB and top indicator with a spotlight. A liquid indicator stretches between tabs (leading edge first, trailing edge catching up), icons morph from outline to filled with a spring and a lift, active labels rise in, badges pop, the solid accent action button glows softly, and every change ticks a haptic.

- Docs: https://expokit.in/docs/components/bottom-nav
- Tier: Free
- Also called: bottom navigation, tab bar, bottom tabs, floating tab bar
- Category: Navigation
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg, expo-haptics
- Uses ExpoKit items: kit
- Variants: Minimal Clean, Floating, Pill Highlight, Center Fab, Tab With Indicator, Music Icons Only

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add bottom-nav
```

The CLI copies the source into your project (you own the code) and installs react-native-svg, expo-haptics.

Import: `import { BottomNav } from "@/components/ui/bottom-nav";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `{ key, label, icon, badge?, action? }[]` | — | Tabs. `icon` is a built-in name (home, explore, search, projects, saved, profile, inbox, activity, analytics, message, work, browse, library, music, create) or a render function `({ color, size, active }) => node` — called for both the outline (`active: false`) and filled (`active: true`) states so it can morph. |
| `value / defaultValue` | `string` | `first tab` | Active tab key (controlled / uncontrolled). |
| `onValueChange` | `(key: string) => void` | — | Called when a tab is pressed. |
| `onAction` | `(key: string) => void` | — | Called when an `action: true` item (e.g. Create) is pressed. Action items render as a solid accent button and never become active. |
| `variant` | `"minimal" \| "floating" \| "pill" \| "center-fab" \| "indicator"` | `"minimal"` | Look. Deprecated values still render: `glass`, `neumorphic`, `dock`, `curved` → `floating`; `gradient`, `outline` → `pill`. |
| `accent` | `string` | `theme accent` | Active colour and the action button fill. |
| `gradient` | `[string, string]` | `none (solid accent)` | Opt-in two-colour gradient for the action button. |
| `showLabels` | `boolean` | `true` | Show labels. `floating` and `pill` reveal only the active label; the others show all. |
| `bottomInset` | `number` | `0` | Extra bottom padding — pass `useSafeAreaInsets().bottom` when the bar sits at the screen edge. |
| `homeIndicator` | `boolean` | `minimal` | Draw the iOS home-indicator line. |
| `haptics` | `boolean` | `true` | Selection tick on tab change, light impact on the action button. |
| `style` | `StyleProp<ViewStyle>` | — | Style of the bar (the outer shadow view for `floating`). |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Tap a tab to select it. Items marked action call onAction instead and never become the active tab.
- **Motion**: The indicator springs its leading edge first and the trailing edge catches up. Icons morph from outline to filled and badges pop in.
- **Reduced motion**: The indicator glides with a short timing and no stretch, and icon changes use quick timings instead of springs.
- **Haptics**: A selection tick on tab change and a light impact on the action button. Turn off with haptics={false}.
- **Screen readers**: The bar is a tablist and each tab carries selected state, with the badge count in its label. Action items are buttons.

## FAQ

### How do I make a bottom navigation in React Native?

Use ExpoKit's Bottom Nav: run npx @expokit/cli@latest add bottom-nav in your Expo or React Native project and it copies a ready-made bottom navigation into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Bottom Nav work in Expo Go?

Yes. Bottom Nav runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.

### How do I add Bottom Nav to my Expo app?

Run npx @expokit/cli@latest add bottom-nav in your project. The CLI copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change.

### Is Bottom Nav free?

Yes. Bottom Nav is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Bottom Nav looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/bottom-nav
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
