From af1543135d42adc2e97dc5243aeef7418cd3b00d Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sat, 07 Mar 2026 08:39:26 +0100
Subject: [PATCH] feat: dual address auto-switch, custom icon, notifications, image support
---
app/_layout.tsx | 36 ++++++++++++++++++++++++------------
1 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/app/_layout.tsx b/app/_layout.tsx
index 2b730a7..b110171 100644
--- a/app/_layout.tsx
+++ b/app/_layout.tsx
@@ -2,21 +2,33 @@
import { Stack } from "expo-router";
import { ConnectionProvider } from "../contexts/ConnectionContext";
import { ChatProvider } from "../contexts/ChatContext";
+import { ThemeProvider, useTheme } from "../contexts/ThemeContext";
import { StatusBar } from "expo-status-bar";
+
+function InnerLayout() {
+ const { isDark, colors } = useTheme();
+ return (
+ <>
+ <StatusBar style={isDark ? "light" : "dark"} backgroundColor={colors.bg} />
+ <Stack
+ screenOptions={{
+ headerShown: false,
+ contentStyle: { backgroundColor: colors.bg },
+ animation: "slide_from_right",
+ }}
+ />
+ </>
+ );
+}
export default function RootLayout() {
return (
- <ConnectionProvider>
- <ChatProvider>
- <StatusBar style="light" backgroundColor="#0A0A0F" />
- <Stack
- screenOptions={{
- headerShown: false,
- contentStyle: { backgroundColor: "#0A0A0F" },
- animation: "slide_from_right",
- }}
- />
- </ChatProvider>
- </ConnectionProvider>
+ <ThemeProvider>
+ <ConnectionProvider>
+ <ChatProvider>
+ <InnerLayout />
+ </ChatProvider>
+ </ConnectionProvider>
+ </ThemeProvider>
);
}
--
Gitblit v1.3.1