init glueastack Components

This commit is contained in:
Patryk
2025-04-04 21:52:34 +02:00
parent 3abef3acba
commit b248aee33d
18 changed files with 2980 additions and 1149 deletions

View File

@@ -1,4 +1,6 @@
import { Stack } from "expo-router";
import "@/global.css";
import { GluestackUIProvider } from "@/components/ui/gluestack-ui-provider";
import { Appearance } from "react-native";
import {Colors} from "@/constants/Colors"
@@ -7,11 +9,13 @@ export default function RootLayout() {
const theme = colorScheme === 'dark' ? Colors.dark :
Colors.light;
return <Stack screenOptions={{ headerStyle: {backgroundColor:theme.background},
headerTintColor: theme.text
}}>
<Stack.Screen name="index"/>
<Stack.Screen name="+not-found" options={{headerShown:false}}/>
return (
<GluestackUIProvider mode="light"><Stack screenOptions={{ headerStyle: {backgroundColor:theme.background},
headerTintColor: theme.text
}}>
<Stack.Screen name="index"/>
<Stack.Screen name="+not-found" options={{headerShown:false}}/>
</Stack>;
</Stack></GluestackUIProvider>
);
}