Got some new errors. but close to having stuff

This commit is contained in:
2024-10-09 16:55:16 -05:00
parent 8128194488
commit 6e01a31e76
12 changed files with 442 additions and 17 deletions

View File

@ -19,7 +19,7 @@ const Index = () => {
onPress={() => alert('You pressed a button.')}
>
<FontAwesome name="picture-o" size={18}
color='#25292e' style={styles.buttonIcon}
color={Colors[scheme].background} style={styles.buttonIcon}
/>
<ThemedText
style={[

View File

@ -1,10 +1,23 @@
import { Stack } from "expo-router";
import React, { useState } from 'react';
import SignInScreen from "@/components/auth/SignInScreen";
import { PushNotificationManager }
from "@/components/services/notifications/PushNotificationManager";
export default function RootLayout() {
const [isSignedIn, setIsSignedIn] = useState(false);
if (!isSignedIn) {
return (
<SignInScreen onSignIn={() => setIsSignedIn(true)} />
);
}
return (
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="+not-found" />
</Stack>
<PushNotificationManager>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="+not-found" />
</Stack>
</PushNotificationManager>
);
}