为主屏幕添加标题“Home”,更新导航堆栈配置

This commit is contained in:
yuchenglong
2026-01-16 11:40:45 +08:00
parent d909563376
commit 4bccf39a8b

View File

@@ -59,7 +59,10 @@ function RootLayoutNav() {
return (
<NavigationThemeProvider value={navigationTheme}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen
name="(tabs)"
options={{ headerShown: false, title: "Home" }}
/>
<Stack.Screen
name="modal"
options={{ presentation: "modal", title: "Modal" }}