Open History to see the last commit
1import { Platform } from "react-native";
2import {
3 nativeHeaderScrollEdgeEffects,
4 type AppNativeStackNavigationOptions,
5} from "../../native/StackHeader";
6
7export function threadHeaderAppearance(
8 usesNativeHeaderGlass: boolean,
9): AppNativeStackNavigationOptions {
10 return {
11 headerShown: true,
12 headerTransparent: usesNativeHeaderGlass,
13 headerStyle: usesNativeHeaderGlass ? { backgroundColor: "transparent" } : undefined,
14 headerShadowVisible: false,
15 scrollEdgeEffects: usesNativeHeaderGlass
16 ? nativeHeaderScrollEdgeEffects(Platform.OS, Platform.Version)
17 : undefined,
18 headerTitleStyle: usesNativeHeaderGlass ? { fontSize: 17, fontWeight: "800" } : undefined,
19 contentStyle: undefined,
20 };
21}