# Glass Nav Bar — React Native component for Expo

> An iOS 26 glass top bar that fades in as content scrolls under it.

The iOS 26 top bar in Liquid Glass: a centred title, a round glass back button and round glass actions that melt together on iOS 26. Wire it to a ScrollView with useGlassNavScroll() and the bar starts transparent, its glass fading in as content slides under it, while an optional large title shrinks and collapses into the bar — all on the native driver. Real Liquid Glass on iOS 26, blur on older iOS, Android and web.

- Docs: https://expokit.in/docs/components/glass-nav-bar
- Tier: Pro (ExpoKit Pro plan)
- Also called: liquid glass header, glass navigation bar, blur header
- Category: Glass
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: expo-glass-effect, expo-blur, react-native-svg
- Uses ExpoKit items: kit, glass
- Variants: Large Title, With Back, Light

## 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 |
| --- | --- | --- | --- |
| `title` | `string` | — | Centred bar title (and the large title when largeTitle is on). |
| `largeTitle` | `boolean` | `false` | Big title under the bar that scrolls away while the small centred title fades in. Needs scrollY. |
| `scrollY` | `Animated.Value` | — | Your scroll view's offset (useGlassNavScroll). The glass fades in over ~40pt as content passes under the bar; without it the bar is solid glass. |
| `onBack` | `() => void` | — | Shows a round glass back button with a chevron. |
| `backLabel` | `string` | — | Text beside the chevron (the button becomes a pill) and its accessibility label; "Back" otherwise. |
| `actions` | `{ key, icon, onPress, accessibilityLabel }[]` | `[]` | Round glass buttons on the right, grouped so they merge on iOS 26. |
| `scheme` | `'light' \| 'dark'` | `kit theme` | Force light or dark glass and ink, e.g. over a photo. |
| `topInset` | `number` | `0` | Space above the bar for the status bar — pass your safe-area top inset. |
| `style` | `StyleProp<ViewStyle>` | — | Style for the bar container, which pins to the top of its parent. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |
| `useGlassNavScroll(listener?)` | `hook → { scrollY, onScroll }` | — | Native-driver Animated.event for an Animated.ScrollView / FlatList (scrollEventThrottle 16). |
| `GLASS_NAV_HEIGHT / glassNavInset({ largeTitle, topInset })` | `number / function` | `54` | Bar row height, and the full height the bar covers — use it as your content's paddingTop. |

## Behaviour & accessibility

- **Motion**: With scrollY the bar starts transparent and its glass fades in as content passes under it. A large title scrolls away while the small centred title fades in, all on the native driver.
- **Touch**: Back and action buttons spring down under the finger on emulated glass; on iOS 26 the interactive glass bounces natively.
- **Reduced motion**: The large title no longer scales on pull-down or collapse, and the button press springs are off.
- **Screen readers**: The title is a header, with the small title hidden while the large one shows. The back button reads backLabel or "Back", and actions use their accessibilityLabel.
- **Platforms**: Real Liquid Glass on iOS 26, where the action buttons merge together. Blur on older iOS, Android and web.

## FAQ

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

Use ExpoKit's Glass Nav Bar, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made liquid glass header 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 Nav Bar work in Expo Go?

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

### How do I add Glass Nav 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, so the code is yours to change. The install command is on this page for Pro members.

### Is Glass Nav Bar free?

Glass Nav 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-nav-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
