frontend client for gemstone. decentralised workplace app
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: load expo font as suggested

serenity a942617e ada8935b

+16
+16
src/app/_layout.tsx
··· 1 1 import { Stack } from "@/components/primitives/Stack"; 2 2 import { isDevMode } from "@/lib/utils/env"; 3 3 import { RootProviders } from "@/providers"; 4 + import { Lexend_300Light, useFonts } from "@expo-google-fonts/lexend"; 5 + import { SplashScreen } from "expo-router"; 4 6 import { useEffect } from "react"; 5 7 import { Platform } from "react-native"; 6 8 7 9 export default function RootLayout() { 10 + const [loaded, error] = useFonts({ 11 + Lexend_300Light, 12 + }); 13 + 8 14 useEffect(() => { 9 15 if (!isDevMode) return; 10 16 if (Platform.OS === "web" && typeof window !== "undefined") { ··· 24 30 ); 25 31 } 26 32 }); 33 + 34 + useEffect(() => { 35 + if (loaded || error) { 36 + void SplashScreen.hideAsync(); 37 + } 38 + }, [loaded, error]); 39 + 40 + if (!loaded && !error) { 41 + return null; 42 + } 27 43 28 44 return ( 29 45 <RootProviders>