diff options
Diffstat (limited to 'apps/mobile/app/_layout.tsx')
| -rw-r--r-- | apps/mobile/app/_layout.tsx | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx index 5eadad80..62c29c27 100644 --- a/apps/mobile/app/_layout.tsx +++ b/apps/mobile/app/_layout.tsx @@ -12,7 +12,6 @@ import { StyledStack } from "@/components/navigation/stack"; import { Providers } from "@/lib/providers"; import useAppSettings from "@/lib/settings"; import { cn } from "@/lib/utils"; -import { BottomSheetModalProvider } from "@gorhom/bottom-sheet"; import { useColorScheme } from "nativewind"; export default function RootLayout() { @@ -37,44 +36,45 @@ export default function RootLayout() { <ShareIntentProvider> <Providers> <GestureHandlerRootView style={{ flex: 1 }}> - <BottomSheetModalProvider> - <View - className={cn( - "w-full flex-1 bg-gray-100 text-foreground dark:bg-background", - colorScheme == "dark" ? "dark" : "light", - )} + <View + className={cn( + "w-full flex-1 bg-gray-100 text-foreground dark:bg-background", + colorScheme == "dark" ? "dark" : "light", + )} + > + <StyledStack + contentClassName="bg-gray-100 dark:bg-background" + screenOptions={{ + headerShown: false, + headerTransparent: true, + }} > - <StyledStack - contentClassName="bg-gray-100 dark:bg-background" - screenOptions={{ - headerShown: false, - headerTransparent: true, + <Stack.Screen name="index" /> + <Stack.Screen + name="signin" + options={{ + headerShown: true, + headerBackVisible: true, + headerBackTitle: "Back", + title: "", }} - > - <Stack.Screen name="index" /> - <Stack.Screen - name="signin" - options={{ - headerShown: true, - headerBackVisible: true, - headerBackTitle: "Back", - title: "", - }} - /> - <Stack.Screen name="server-address" /> - <Stack.Screen name="sharing" /> - <Stack.Screen - name="test-connection" - options={{ - title: "Test Connection", - headerShown: true, - presentation: "modal", - }} - /> - </StyledStack> - <StatusBar style="auto" /> - </View> - </BottomSheetModalProvider> + /> + <Stack.Screen name="server-address" /> + <Stack.Screen + name="sharing" + options={{ presentation: "modal" }} + /> + <Stack.Screen + name="test-connection" + options={{ + title: "Test Connection", + headerShown: true, + presentation: "modal", + }} + /> + </StyledStack> + <StatusBar style="auto" /> + </View> </GestureHandlerRootView> </Providers> </ShareIntentProvider> |
