Navbar scroll

This commit is contained in:
Zoe Roux
2026-02-11 19:06:38 +01:00
parent 69a6bff197
commit b3d5b99862
14 changed files with 254 additions and 231 deletions
-13
View File
@@ -1,4 +1,3 @@
import { getFocusedRouteNameFromRoute } from "@react-navigation/native";
import { Stack } from "expo-router";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { useCSSVariable, useResolveClassNames } from "uniwind";
@@ -26,18 +25,6 @@ export default function Layout() {
headerTintColor: color as string,
}}
>
<Stack.Screen
name="(tabs)"
options={({ route }) => {
if (getFocusedRouteNameFromRoute(route) === "index") {
return {
headerTransparent: true,
headerStyle: { backgroundColor: undefined },
};
}
return {};
}}
/>
<Stack.Screen
name="info/[slug]"
options={{