frontend client for gemstone. decentralised workplace app

fix: make sure background colour is applied on fcp

serenity 6d881d9b a5d20ab5

Changed files
+9 -2
src
+9 -2
src/app/_layout.tsx
···
import { isDevMode } from "@/lib/utils/env";
import { RootProviders } from "@/providers";
import {
Lexend_100Thin,
Lexend_200ExtraLight,
···
} from "@expo-google-fonts/lexend";
import { Slot, SplashScreen } from "expo-router";
import { useEffect } from "react";
-
import { Platform } from "react-native";
const RootLayoutInner = () => {
const [loaded, error] = useFonts({
···
Lexend_900Black,
});
useEffect(() => {
if (!isDevMode) return;
if (Platform.OS === "web" && typeof window !== "undefined") {
···
return null;
}
-
return <Slot />;
};
const RootLayout = () => {
···
import { isDevMode } from "@/lib/utils/env";
import { RootProviders } from "@/providers";
+
import { useCurrentPalette } from "@/providers/ThemeProvider";
import {
Lexend_100Thin,
Lexend_200ExtraLight,
···
} from "@expo-google-fonts/lexend";
import { Slot, SplashScreen } from "expo-router";
import { useEffect } from "react";
+
import { Platform, View } from "react-native";
const RootLayoutInner = () => {
const [loaded, error] = useFonts({
···
Lexend_900Black,
});
+
const { semantic } = useCurrentPalette();
+
useEffect(() => {
if (!isDevMode) return;
if (Platform.OS === "web" && typeof window !== "undefined") {
···
return null;
}
+
return (
+
<View style={{ backgroundColor: semantic.background, flex: 1 }}>
+
<Slot />
+
</View>
+
);
};
const RootLayout = () => {