fix: hide iOS home indicator when no touch

This commit is contained in:
Adrian Castro
2024-02-13 15:57:39 +01:00
parent 5a23ffed69
commit b04c161a94

View File

@@ -67,6 +67,7 @@ function RootLayoutNav() {
<ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}>
<Stack
screenOptions={{
autoHideHomeIndicator: true,
gestureEnabled: true,
headerShown: false,
contentStyle: {
@@ -74,7 +75,10 @@ function RootLayoutNav() {
},
}}
>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen
name="(tabs)"
options={{ headerShown: false, autoHideHomeIndicator: true }}
/>
</Stack>
</ThemeProvider>
);