aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/favourites.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/app/dashboard/favourites.tsx')
-rw-r--r--apps/mobile/app/dashboard/favourites.tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/mobile/app/dashboard/favourites.tsx b/apps/mobile/app/dashboard/favourites.tsx
index 1dddfe31..3dd2aa09 100644
--- a/apps/mobile/app/dashboard/favourites.tsx
+++ b/apps/mobile/app/dashboard/favourites.tsx
@@ -1,13 +1,16 @@
+import { useLayoutEffect } from "react";
import { useNavigation } from "expo-router";
import UpdatingBookmarkList from "@/components/bookmarks/UpdatingBookmarkList";
import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
export default function Favourites() {
const navigator = useNavigation();
- navigator.setOptions({
- headerTitle: "⭐️ Favourites",
- headerLargeTitle: true,
- });
+ useLayoutEffect(() => {
+ navigator.setOptions({
+ headerTitle: "⭐️ Favourites",
+ headerLargeTitle: true,
+ });
+ }, [navigator]);
return (
<CustomSafeAreaView>
<UpdatingBookmarkList