Files
Kyoo/front/app/(app)/_layout.tsx
2025-06-15 13:22:33 +02:00

33 lines
876 B
TypeScript

import { Stack } from "expo-router";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { useTheme } from "yoshiki/native";
import { ErrorConsumer } from "~/providers/error-consumer";
import { NavbarRight, NavbarTitle } from "~/ui/navbar";
export default function Layout() {
const insets = useSafeAreaInsets();
const theme = useTheme();
return (
<ErrorConsumer scope="app">
<Stack
screenOptions={{
navigationBarColor: "transparent",
navigationBarTranslucent: true,
headerTitle: () => <NavbarTitle />,
headerRight: () => <NavbarRight />,
contentStyle: {
backgroundColor: theme.background,
paddingLeft: insets.left,
paddingRight: insets.right,
},
headerStyle: {
backgroundColor: theme.accent,
},
headerTintColor: theme.colors.white,
}}
/>
</ErrorConsumer>
);
}