aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/_layout.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-17 17:56:21 +0100
committerMohamedBassem <me@mbassem.com>2024-04-17 18:13:31 +0100
commitc46482cdaaf883971736488750513663dd023076 (patch)
tree9e3d70fd9e7ae39f8ef21e0651049558e5c5fa5b /apps/mobile/app/dashboard/_layout.tsx
parentbb44ebcb9967bde81d15e2f7858d515777681c10 (diff)
downloadkarakeep-c46482cdaaf883971736488750513663dd023076.tar.zst
mobile: Add dark mode support
Diffstat (limited to '')
-rw-r--r--apps/mobile/app/dashboard/_layout.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/mobile/app/dashboard/_layout.tsx b/apps/mobile/app/dashboard/_layout.tsx
index c9f7355b..7548a6db 100644
--- a/apps/mobile/app/dashboard/_layout.tsx
+++ b/apps/mobile/app/dashboard/_layout.tsx
@@ -3,6 +3,7 @@ import { useEffect } from "react";
import { AppState, Platform } from "react-native";
import { useRouter } from "expo-router";
import { Stack } from "expo-router/stack";
+import { StyledStack } from "@/components/navigation/stack";
import { useIsLoggedIn } from "@/lib/session";
import { focusManager } from "@tanstack/react-query";
@@ -29,7 +30,10 @@ export default function Dashboard() {
}, []);
return (
- <Stack>
+ <StyledStack
+ contentClassName="bg-gray-100 dark:bg-background"
+ headerClassName="bg-gray-100 dark:bg-background text-foreground"
+ >
<Stack.Screen
name="(tabs)"
options={{ headerShown: false, title: "Home" }}
@@ -64,6 +68,6 @@ export default function Dashboard() {
presentation: "modal",
}}
/>
- </Stack>
+ </StyledStack>
);
}