From f4b2bac6b0749e5924f9e9e789cc361a17427364 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Mon, 16 Dec 2024 00:26:12 +0000
Subject: ui(mobile): Make page titles more native

---
 apps/mobile/app/dashboard/archive.tsx | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

(limited to 'apps/mobile/app/dashboard/archive.tsx')

diff --git a/apps/mobile/app/dashboard/archive.tsx b/apps/mobile/app/dashboard/archive.tsx
index 2fe5d274..b4cc3a66 100644
--- a/apps/mobile/app/dashboard/archive.tsx
+++ b/apps/mobile/app/dashboard/archive.tsx
@@ -1,14 +1,16 @@
+import { useNavigation } from "expo-router";
 import UpdatingBookmarkList from "@/components/bookmarks/UpdatingBookmarkList";
 import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
-import PageTitle from "@/components/ui/PageTitle";
 
 export default function Archive() {
+  const navigator = useNavigation();
+  navigator.setOptions({
+    headerTitle: "🗄️ Archive",
+    headerLargeTitle: true,
+  });
   return (
     <CustomSafeAreaView>
-      <UpdatingBookmarkList
-        query={{ archived: true }}
-        header={<PageTitle title="🗄️ Archive" />}
-      />
+      <UpdatingBookmarkList query={{ archived: true }} />
     </CustomSafeAreaView>
   );
 }
-- 
cgit v1.3-1-g0d28

