为主屏幕添加标题“Home”,更新导航堆栈配置
This commit is contained in:
@@ -59,7 +59,10 @@ function RootLayoutNav() {
|
|||||||
return (
|
return (
|
||||||
<NavigationThemeProvider value={navigationTheme}>
|
<NavigationThemeProvider value={navigationTheme}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
|
<Stack.Screen
|
||||||
|
name="(tabs)"
|
||||||
|
options={{ headerShown: false, title: "Home" }}
|
||||||
|
/>
|
||||||
<Stack.Screen
|
<Stack.Screen
|
||||||
name="modal"
|
name="modal"
|
||||||
options={{ presentation: "modal", title: "Modal" }}
|
options={{ presentation: "modal", title: "Modal" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user