@@ -59,6 +59,7 @@ import {
5959 EMPTY_INCOMING_SHARE_PRESENTATION_STATE ,
6060 transitionIncomingSharePresentation ,
6161} from "./features/sharing/incoming-share-presentation" ;
62+ import { NATIVE_LIQUID_GLASS_SUPPORTED } from "./native/native-glass" ;
6263import { nativeHeaderScrollEdgeEffects } from "./native/StackHeader" ;
6364import { useThreadOutboxDrain } from "./state/use-thread-outbox-drain" ;
6465
@@ -78,19 +79,24 @@ type AppScreenOptions = NativeStackNavigationOptions & {
7879// Shared header presets. Screens only override genuinely dynamic values (titles,
7980// subtitles, toolbar items, search callbacks) via NativeStackScreenOptions.
8081//
81- // GLASS: transparent header over the screen's primary scroll view, with the iOS 26
82- // scroll-edge blur sampling the content (Home, Thread, Files tree, settings sheet).
82+ // GLASS: transparent header over the screen's primary scroll view on supported
83+ // iOS versions. Pre-glass iOS gets the same solid material as internal-scroll
84+ // surfaces so content is laid out below the bar instead of underlapping it.
8385const GLASS_HEADER_OPTIONS : AppScreenOptions = {
8486 headerBackButtonDisplayMode : "minimal" ,
8587 headerBackTitle : "" ,
8688 headerLargeTitle : false ,
8789 headerShadowVisible : false ,
8890 headerShown : true ,
89- headerStyle : Platform . OS === "ios" ? { backgroundColor : "transparent" } : undefined ,
91+ headerStyle : NATIVE_LIQUID_GLASS_SUPPORTED
92+ ? { backgroundColor : "transparent" }
93+ : SHEET_BACKGROUND_COLOR !== undefined
94+ ? { backgroundColor : SHEET_BACKGROUND_COLOR as unknown as string }
95+ : undefined ,
9096 headerTitleStyle : { fontSize : 18 , fontWeight : "800" } ,
91- headerTransparent : Platform . OS === "ios" ,
92- scrollEdgeEffects : Platform . OS === "ios" ? HEADER_SCROLL_EDGE_EFFECTS : undefined ,
93- unstable_navigationItemStyle : Platform . OS === "ios" ? "editor" : undefined ,
97+ headerTransparent : NATIVE_LIQUID_GLASS_SUPPORTED ,
98+ scrollEdgeEffects : NATIVE_LIQUID_GLASS_SUPPORTED ? HEADER_SCROLL_EDGE_EFFECTS : undefined ,
99+ unstable_navigationItemStyle : NATIVE_LIQUID_GLASS_SUPPORTED ? "editor" : undefined ,
94100} ;
95101
96102// SOLID: opaque sheet-colored header for surfaces whose content scrolls internally
0 commit comments