# Glass Tab Bar — React Native component for Expo

> A floating glass tab bar whose selection bubble stretches as it springs between tabs.

A floating Liquid Glass tab bar like iOS 26: a glass pill whose selected tab sits in a lighter bubble that springs between tabs, stretching as it travels and settling when it lands. Icons lift when selected, red count badges, optional labels and a separate circular trailing button (search) grouped with the bar so the two melt together on iOS 26. Real Liquid Glass on iOS 26, blur everywhere else; native-driver motion that respects Reduce Motion, selection haptics and a tablist for screen readers.

- Docs: https://expokit.in/docs/components/glass-tab-bar
- Tier: Pro (ExpoKit Pro plan)
- Also called: liquid glass tab bar, iOS 26 tab bar, floating glass tabs
- Category: Glass
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: expo-glass-effect, expo-blur, react-native-svg, expo-haptics
- Uses ExpoKit items: kit, glass
- Variants: Default, Icons Only, Light, With Badges

## Installation

This component is part of ExpoKit Pro. With a Pro plan, log the CLI in once and add it like any other item:

```bash
npx @expokit/cli@latest login
```

Plans: https://expokit.in/pricing

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `tabs` | `{ key, label, icon, badge? }[]` | — | Tabs, left to right. `icon` is a render function `({ color, size, focused }) => node`; `badge` (number \| string) shows a red count bubble, hidden when 0 or ''. |
| `value / defaultValue` | `string` | `first tab` | Selected tab key (controlled / uncontrolled). |
| `onChange` | `(key: string) => void` | — | Called when a different tab is pressed. |
| `showLabels` | `boolean` | `true` | Labels under the icons. Icons-only tabs get a slightly larger icon. |
| `accent` | `string` | `kit accent (glass ink)` | Selected icon and label colour — black on light glass, white on dark unless the kit accent is customised. |
| `scheme` | `'light' \| 'dark'` | `kit theme` | Force light or dark glass, e.g. 'dark' over photos. |
| `trailing` | `{ icon, onPress, label }` | — | A separate circular glass button to the right (e.g. search), grouped with the bar so they melt together on iOS 26. `label` is its accessibility label. |
| `haptics` | `boolean` | `true` | Selection tick on tab change, light tap on the trailing button. |
| `style` | `StyleProp<ViewStyle>` | — | Style of the outer row. The bar does not position itself — place it (e.g. absolute, bottom: insets.bottom + 8). |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |
| `GLASS_TAB_BAR_HEIGHT` | `number` | `62` | Exported height of the bar (and the trailing circle) — pad your scroll content by it. |

## Behaviour & accessibility

- **Motion**: The lighter bubble springs to the selected tab, stretching as it travels and settling when it lands. The selected icon lifts, and buttons spring down while pressed.
- **Reduced motion**: The bubble jumps to the new tab without stretching, icons switch without a spring and press springs are off.
- **Haptics**: A selection tick when the tab changes and a light tap on the trailing button.
- **Screen readers**: The bar is a tablist; each tab is a tab with its selected state, and the badge count is read after the label.
- **Platforms**: Real Liquid Glass on iOS 26, where the trailing button melts into the bar. Blur everywhere else.

## FAQ

### How do I make a liquid glass tab bar in React Native?

Use ExpoKit's Glass Tab Bar, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made liquid glass tab bar into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Glass Tab Bar work in Expo Go?

Yes. Glass Tab Bar runs in Expo Go on iOS and Android with no development build — its packages (expo-glass-effect, expo-blur, react-native-svg, expo-haptics) are all included in Expo Go.

### How do I add Glass Tab Bar to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app and installs expo-glass-effect, expo-blur, react-native-svg, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.

### Is Glass Tab Bar free?

Glass Tab Bar is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

## More

- Live preview, variants and code: https://expokit.in/docs/components/glass-tab-bar
- 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
