Got some new errors. but close to having stuff
This commit is contained in:
@ -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={[
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user