Add initial first test screen

This commit is contained in:
Patryk
2025-04-01 22:48:36 +02:00
parent fd40827e6d
commit 798d3fe145
25 changed files with 699 additions and 16 deletions

View File

@@ -1,5 +1,17 @@
import { Stack } from "expo-router";
import { Appearance } from "react-native";
import {Colors} from "@/constants/Colors"
export default function RootLayout() {
return <Stack />;
const colorScheme = Appearance.getColorScheme();
const theme = colorScheme === 'dark' ? Colors.dark :
Colors.light;
return <Stack screenOptions={{ headerStyle: {backgroundColor:theme.background},
headerTintColor: theme.text
}}>
<Stack.Screen name="index"/>
<Stack.Screen name="+not-found" options={{headerShown:false}}/>
</Stack>;
}