React Native scroll edge bars for iOS — floating top and bottom bars that blend with the navigation bar or tab bar as the user scrolls.
As of iOS 26, there is no direct way from React Native to attach a custom bar to a scroll view that blends with the system navigation or tab bar blur. The underlying mechanics live in SwiftUI's safeAreaBar, which coordinates with the system bars without requiring shared view hierarchy.
This library bridges that gap by wrapping the native ScrollEdgeBar UIKit package, which itself drives the effect through SwiftUI. On iOS 16–25 it falls back to safeAreaInset-style bars with the same layout, without the blur.
- Seamless glass blur — top and bottom bars extend the navigation bar and tab bar Liquid Glass (iOS 26+)
- Graceful fallback — uses
safeAreaInseton iOS 16–25, same layout without the blur - Top & bottom bars — attach a bar to either scroll edge, or both
- React Native Fabric — full New Architecture support
- Compound component API —
ScrollEdgeBar,ScrollEdgeBar.TopBar,ScrollEdgeBar.BottomBar
- iOS 16.0+
- React Native New Architecture (Fabric)
npm install react-native-scroll-edge-barThen install iOS pods in your app:
cd ios && pod installSet the iOS deployment target in your Expo config so regenerated native projects keep the required minimum:
npx expo install expo-build-properties{
"expo": {
"plugins": [
[
"expo-build-properties",
{
"ios": {
"deploymentTarget": "16.0"
}
}
]
]
}
}Then regenerate and run:
npx expo prebuild --platform ios
npx expo run:iosimport { ScrollView, Text, View } from 'react-native';
import SegmentedControl from '@react-native-segmented-control/segmented-control';
import { ScrollEdgeBar } from 'react-native-scroll-edge-bar';
export function Example() {
return (
<ScrollEdgeBar style={{ flex: 1 }}>
<ScrollEdgeBar.TopBar style={{ paddingHorizontal: 16, paddingVertical: 8 }}>
<SegmentedControl values={['Free', 'Paid']} selectedIndex={0} />
</ScrollEdgeBar.TopBar>
<ScrollView>
{Array.from({ length: 30 }).map((_, index) => (
<View key={index} style={{ padding: 20 }}>
<Text>Item {index + 1}</Text>
</View>
))}
</ScrollView>
<ScrollEdgeBar.BottomBar style={{ paddingHorizontal: 16, paddingVertical: 12 }}>
<Text>Bottom Bar</Text>
</ScrollEdgeBar.BottomBar>
</ScrollEdgeBar>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
prefersGlassEffect |
boolean |
true |
When false, uses plain safeAreaInset bars on all OS versions. |
topEdgeEffectStyle |
'automatic' | 'soft' | 'hard' |
'automatic' |
iOS 26 scroll-edge effect intensity for the top edge. |
bottomEdgeEffectStyle |
'automatic' | 'soft' | 'hard' |
'automatic' |
iOS 26 scroll-edge effect intensity for the bottom edge. |
style |
StyleProp<ViewStyle> |
— | Standard RN view style. |
These props are not needed in most cases. The native package measures bar content automatically before the first frame.
| Prop | Type | Default | Description |
|---|---|---|---|
estimatedTopBarHeight |
number |
0 |
Layout hint before top bar is measured. Reduces first-frame flicker. |
estimatedBottomBarHeight |
number |
0 |
Layout hint before bottom bar is measured. Reduces first-frame flicker. |
Accept standard RN view props (style, children).
Segmented control as a top bar above a ranked app list. The bar blends with the navigation bar as content scrolls beneath it.
823_1440x30_shots_so.mp4
Same screen with prefersGlassEffect={false}, showing the plain safeAreaInset bar without the blur effect.
306_1440x30_shots_so.mp4
Horizontally scrolling filter chips as a top bar with a large title navigation bar.
708_1440x30_shots_so.mp4
Note: When a
safeAreaBaris present alongside a large title navigation bar, SwiftUI applies the scroll edge blur effect to the navigation bar even when the content is at rest, causing it to appear blurry on first appearance. This is a known SwiftUI behavior (FB21613303).
Glass-effect review banner as a top bar and action buttons as a bottom bar.
945_1440x30_shots_so.mp4
Large colored blocks demonstrating how the glass blur color transitions as you scroll past different background colors.
803_1440x30_shots_so.mp4
Bottom edge bar positioned above the system toolbar.
484_1440x30_shots_so.mp4
UISearchController in the navigation bar with a segmented control edge bar below it.
154_1440x30_shots_so.mp4
Week day selector as a top bar with a stronger scroll-edge effect. The effect intensity is controlled via topEdgeEffectStyle:
<ScrollEdgeBar topEdgeEffectStyle="hard">
...
</ScrollEdgeBar>152_1440x30_shots_so.mp4
- iOS only
- Requires React Native New Architecture (Fabric)
- Glass scroll-edge effect requires iOS 26; earlier versions use non-glass inset bars
- Arbitrary RN-rendered bar children do not inherit the same adaptive scroll-edge color transitions as native UIKit/SwiftUI controls
Created by Jens Van Steen
MIT