About this animation
Expo liquid glass can mean a native system material or a custom blur composition. This React Native tab bar uses expo-blur and Expo Linear Gradient: a floating bar collapses into an active-tab pill as its connected feed scrolls. A spring-driven lens follows selection. It does not use expo-glass-effect or switch to that API on iOS 26. Its Android blur method uses blur on Android 12 and newer, with a translucent fallback on older versions. Supply tab labels, controlled or default selection, accent color, and glass settings, then connect the supplied scroll handler to a Reanimated list. Route changes remain the responsibility of your app.
When to use it
- Condense bottom navigation while a feed scrolls.
- Keep the active destination visible in a compact pill.
- Add an iOS 26-style glass surface.
- Connect navigation motion to a Reanimated list.
Related guides
A floating tab bar that collapses into an active-tab pill on scroll, with configurable tab labels, glass treatment, and accent color.
How it works
useCollapsingTabBarScrollexposes a UI-thread scroll handler for anAnimated.ScrollVieworAnimated.FlatList, plus its shared scroll value.- The bar width, height, tab opacity, and search control derive from that value.
- A spring-driven lens follows the selected tab.
- A single blur target keeps Android blur efficient.
Install
npx expo install expo-blur expo-linear-gradient react-native-reanimated react-native-worklets
Usage
const { onScroll, scrollY } = useCollapsingTabBarScroll();
<Animated.FlatList onScroll={onScroll} scrollEventThrottle={16} />
<CollapsingGlassTabBar scrollY={scrollY} onChange={setTab} />The handler returned by useCollapsingTabBarScroll must be attached to a
Reanimated Animated.ScrollView or Animated.FlatList, not the corresponding
plain React Native component.
Props
| Prop | Default | Description |
|---|---|---|
value | number | undefined |
defaultValue | number | 0 |
tabs | string[] | defaultTabs |
glass | GlassOptions | undefined |
accentColor | string | '#7567FF' |
onChange | (index: number) => void | undefined |
scrollY | SharedValue<number> | undefined |
style | StyleProp<ViewStyle> | undefined |
accessibilityLabel | string | 'Primary navigation' |
testID | string | undefined |
Compatibility
Expo SDK 58, React Native 0.88, and Reanimated 4. iOS, Android, and web are included.
Accessibility
Tabs use the tab role and selected state. Reduced motion switches spring transitions to direct state changes.
Customization notes
Movement follows gestures, scroll position, or interruptible spring physics. A global duration is not exposed; reduced-motion fades retain their short fixed timing.
FAQ
- Does this Expo liquid glass tab bar use the native GlassEffect API?
- No. It uses expo-blur, gradients, and Reanimated. SDK 58 separately offers expo-glass-effect for native Liquid Glass on iOS 26 and newer; GlassView falls back to a regular View on unsupported platforms. This component keeps its blur-based implementation.
- What happens on Android, and does it work in Expo Go?
- The SDK 58 dependencies are included in Expo Go. The bar uses BlurTargetView and dimezisBlurViewSdk31Plus: Android 12 and newer receive blur, while older Android versions receive a translucent view. Each published piece is reviewed on physical iPhone and Android devices with Expo Go before release.
- How do I connect scrolling and accessible tab selection?
- Attach the supplied handler to a Reanimated Animated.ScrollView or Animated.FlatList. Tabs expose their tab role and selected state. Reduce Motion uses direct updates. Supply value and onChange for controlled selection, then handle navigation in your application.




