From dc0ad21f0e857adb87d710dd0f2f9affd0a9cbc9 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Wed, 16 Jul 2025 09:58:34 +0700
Subject: kinda works

---
 app/_layout.tsx | 57 +++++++++++++++++++++++++++++++++------------------------
 1 file changed, 33 insertions(+), 24 deletions(-)

(limited to 'app/_layout.tsx')

diff --git a/app/_layout.tsx b/app/_layout.tsx
index 8d506f7..6974539 100644
--- a/app/_layout.tsx
+++ b/app/_layout.tsx
@@ -1,29 +1,38 @@
-import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
-import { useFonts } from 'expo-font';
-import { Stack } from 'expo-router';
-import { StatusBar } from 'expo-status-bar';
-import 'react-native-reanimated';
+// import {
+//   DarkTheme,
+//   DefaultTheme,
+//   ThemeProvider,
+// } from "@react-navigation/native";
+// import { useFonts } from "expo-font";
+// import { Stack } from "expo-router";
+// import { StatusBar } from "expo-status-bar";
+// import "react-native-reanimated";
+// import { Toaster } from "react-hot-toast";
 
-import { useColorScheme } from '@/hooks/useColorScheme';
+// import { useColorScheme } from "@/hooks/useColorScheme";
 
-export default function RootLayout() {
-  const colorScheme = useColorScheme();
-  const [loaded] = useFonts({
-    SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
-  });
+// export default function RootLayout() {
+//   const colorScheme = useColorScheme();
+//   const [loaded] = useFonts({
+//     SpaceMono: require("../assets/fonts/SpaceMono-Regular.ttf"),
+//   });
 
-  if (!loaded) {
-    // Async font loading only occurs in development.
-    return null;
-  }
+//   if (!loaded) {
+//     // Async font loading only occurs in development.
+//     return null;
+//   }
 
-  return (
-    <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
-      <Stack>
-        <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
-        <Stack.Screen name="+not-found" />
-      </Stack>
-      <StatusBar style="auto" />
-    </ThemeProvider>
-  );
+//   return (
+//     <ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}>
+//       <Stack>
+//         <Stack.Screen name="index" options={{ headerShown: false }} />
+//         <Stack.Screen name="+not-found" />
+//       </Stack>
+//       <StatusBar style="auto" />
+//       <Toaster position="top-center" />
+//     </ThemeProvider>
+//   );
+// }
+export default function RootLayout() {
+  return <></>;
 }
-- 
cgit v1.2.3

