In SDK 58, Stack headers on iOS 26 and later use the system bar appearance by default: the header is transparent with Liquid Glass, and screen content goes under it. A screen whose content starts at the top of its view can have its first rows drawn behind the header on those devices, while the same screen looks fine on Android. Knowing when the transparent default applies tells you which screens need a fix, and which fix fits each one.
Key terms
- headerTransparent: a stack option that positions the header absolutely over the screen with a transparent background, set as a boolean or as an object with one value per platform.
- contentInsetAdjustmentBehavior: the prop to set to
"automatic"on a screen's rootScrollView,FlatListorSectionListwhen its content is hidden under the header. - enableLegacyHeaderAppearance: a deprecated, iOS-only
expo-routerfunction that restores the opaque header for every native stack screen on iOS 26 and later.
Which screens get a see-through header
The default value of headerTransparent is { ios: true, android: false, web: false }. On iOS, that true applies only when Liquid Glass is available and the screen sets neither headerStyle.backgroundColor nor headerBackground. That leaves three cases:
- On Android, headers are unchanged.
- On iOS versions before 26, and in apps that turn Liquid Glass off, the header stays opaque.
- On iOS 26 and later, a screen with no header background gets the transparent header, absolutely positioned over content that starts at the top of the screen.
A header background set anywhere in the merged options takes a screen out of the default. A layout whose screenOptions sets headerStyle.backgroundColor keeps the transparent default away from all of its screens. A plain <Stack /> with no header options is the case to check first.
Lists and scroll views
If content is hidden under the header, add contentInsetAdjustmentBehavior="automatic" to the root ScrollView, FlatList or SectionList of the screen. The prop goes on the scroll view itself, not on a wrapper around it. In the InboxScreen example, contentInsetAdjustmentBehavior="automatic" sits on the FlatList that renders the messages.
A large title that collapses as the user scrolls needs the same prop on its ScrollView or FlatList.
Screens that don't scroll
A form or a detail view without a scroll view has nothing to put that prop on. Set headerTransparent: false in its options instead. The header is then opaque, and the screen content starts below it.
This works per screen. The transparent system bar is used only when a screen leaves headerTransparent unset, so an explicit false on one screen gives that screen an opaque header while its siblings keep the glass one. The InboxLayout example sets it on the compose screen only, with options={{ title: 'New message', headerTransparent: false }}, and leaves the inbox list on the default.
Why SafeAreaView makes it worse
Wrapping the screen in SafeAreaView from react-native-safe-area-context looks like the natural fix, but it applies only the status bar inset. Under a transparent header, the content stays hidden. Under an opaque header, SafeAreaView adds a second top inset.
Custom fonts in the header
On iOS 26 and later, headers use the system fonts instead of the theme fonts. To keep a custom font, set fontFamily in headerTitleStyle, headerBackTitleStyle or headerLargeTitleStyle. A fontFamily set in those style options still applies with the new appearance.
Turning it off for the whole app
enableLegacyHeaderAppearance() restores the previous appearance on iOS 26 and later for all native stack screens: an opaque header that uses the theme fonts, with content below it. Import it from expo-router and call it before the root layout renders, at the top level of the root _layout file, as RootLayout does above its component.
The function takes no arguments and only switches a flag on. No function turns it back off, so once called it applies to every native stack screen. It is already deprecated: a future release makes the native iOS header the only behavior and removes the function. Treat it as a stopgap that keeps the app looking as it did while you fix screens one at a time with the two per-screen options above.
Code Examples
// src/app/inbox/_layout.tsx
import { Stack } from 'expo-router';
export default function InboxLayout() {
return (
<Stack>
<Stack.Screen name="index" options={{ title: 'Inbox' }} />
<Stack.Screen name="compose" options={{ title: 'New message', headerTransparent: false }} />
</Stack>
);
}
// src/app/inbox/index.tsx
import { FlatList, Text } from 'react-native';
import { useMessages } from '@/hooks/use-messages';
export default function InboxScreen() {
const messages = useMessages();
return (
<FlatList
contentInsetAdjustmentBehavior="automatic"
data={messages}
keyExtractor={(message) => message.id}
renderItem={({ item }) => <Text>{item.subject}</Text>}
/>
);
}// src/app/_layout.tsx
import { enableLegacyHeaderAppearance, Stack } from 'expo-router';
enableLegacyHeaderAppearance();
export default function RootLayout() {
return <Stack screenOptions={{ headerTintColor: '#0f766e' }} />;
}