Add: Screen root
This commit is contained in:
2025-08-18 11:45:06 +08:00
parent 6f5d04e73f
commit 0b6c360500
4 changed files with 65 additions and 37 deletions

View File

@@ -1,5 +1,4 @@
import { MainColor } from "@/constants/color-palet";
import { Stack } from "expo-router";
import AppRoot from "@/screens/RootLayout/AppRoot";
import "react-native-gesture-handler";
import { SafeAreaProvider } from "react-native-safe-area-context";
import Toast from "react-native-toast-message";
@@ -8,28 +7,7 @@ export default function RootLayout() {
return (
<>
<SafeAreaProvider>
<Stack
screenOptions={{
headerStyle: { backgroundColor: MainColor.darkblue },
headerTitleStyle: { color: MainColor.yellow, fontWeight: "bold" },
headerTitleAlign: "center",
}}
>
<Stack.Screen
name="index"
options={{ title: "", headerBackVisible: false }}
/>
<Stack.Screen name="+not-found" options={{ title: "" }} />
<Stack.Screen
name="verification"
options={{ title: "", headerBackVisible: false }}
/>
<Stack.Screen
name="register"
options={{ title: "", headerBackVisible: false }}
/>
<Stack.Screen name="(application)" options={{ headerShown: false }} />
</Stack>
<AppRoot />
</SafeAreaProvider>
<Toast />
</>