diff options
| author | MohamedBassem <me@mbassem.com> | 2024-12-16 00:26:12 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-12-16 11:45:08 +0000 |
| commit | f4b2bac6b0749e5924f9e9e789cc361a17427364 (patch) | |
| tree | d60e90f6788598f95e233cdc4947fa79b931f998 /apps/mobile/app/dashboard/(tabs) | |
| parent | 705d539c8e9c6a86882825ee4dabeff3027ba827 (diff) | |
| download | karakeep-f4b2bac6b0749e5924f9e9e789cc361a17427364.tar.zst | |
ui(mobile): Make page titles more native
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)')
| -rw-r--r-- | apps/mobile/app/dashboard/(tabs)/_layout.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/_layout.tsx b/apps/mobile/app/dashboard/(tabs)/_layout.tsx index 46bf0f77..4e403a99 100644 --- a/apps/mobile/app/dashboard/(tabs)/_layout.tsx +++ b/apps/mobile/app/dashboard/(tabs)/_layout.tsx @@ -1,9 +1,17 @@ -import React from "react"; -import { Tabs } from "expo-router"; +import React, { useEffect } from "react"; +import { Tabs, useNavigation } from "expo-router"; import { StyledTabs } from "@/components/navigation/tabs"; import { ClipboardList, Home, Settings } from "lucide-react-native"; export default function TabLayout() { + const navigation = useNavigation(); + // Hide the header on the parent screen + useEffect(() => { + navigation.setOptions({ + headerShown: false, + }); + }, [navigation]); + return ( <StyledTabs tabBarClassName="bg-gray-100 dark:bg-background" |
