diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-13 00:58:37 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-13 00:58:37 +0000 |
| commit | f1d86812e9a045b474f4a1c8cd3621fe17b8b806 (patch) | |
| tree | 9464bade7a051e1da5b044ae1b7a17028f74f08b /packages/mobile/app/_layout.tsx | |
| parent | 94d87971e6f83fb46b6db3f30a0ca135d87ba2e2 (diff) | |
| download | karakeep-f1d86812e9a045b474f4a1c8cd3621fe17b8b806.tar.zst | |
mobile: Introduce a tab layout and move the sharing page into a modal
Diffstat (limited to 'packages/mobile/app/_layout.tsx')
| -rw-r--r-- | packages/mobile/app/_layout.tsx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/packages/mobile/app/_layout.tsx b/packages/mobile/app/_layout.tsx index bd269060..e8244867 100644 --- a/packages/mobile/app/_layout.tsx +++ b/packages/mobile/app/_layout.tsx @@ -1,11 +1,12 @@ import "@/globals.css"; import "expo-dev-client"; -import { Slot, useRouter } from "expo-router"; +import { useRouter } from "expo-router"; import { useShareIntent } from "expo-share-intent"; import { StatusBar } from "expo-status-bar"; import { useEffect } from "react"; import { View } from "react-native"; +import { Stack } from "expo-router/stack"; import { Providers } from "@/lib/providers"; @@ -22,10 +23,22 @@ export default function RootLayout() { resetShareIntent(); } }, [hasShareIntent]); + return ( <Providers> <View className="h-full w-full bg-white"> - <Slot /> + <Stack + screenOptions={{ + headerShown: false, + }} + > + <Stack.Screen + name="sharing" + options={{ + presentation: "modal", + }} + /> + </Stack> <StatusBar style="auto" /> </View> </Providers> |
