From f4b2bac6b0749e5924f9e9e789cc361a17427364 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Mon, 16 Dec 2024 00:26:12 +0000 Subject: ui(mobile): Make page titles more native --- apps/mobile/app/dashboard/(tabs)/_layout.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'apps/mobile/app/dashboard/(tabs)') 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 (