2024-10-08 16:58:50 -05:00
|
|
|
import { Stack } from "expo-router";
|
2024-10-09 16:55:16 -05:00
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
|
|
|
import SignInScreen from "@/components/auth/SignInScreen";
|
|
|
|
import { PushNotificationManager }
|
|
|
|
from "@/components/services/notifications/PushNotificationManager";
|
2024-10-08 12:25:29 -05:00
|
|
|
|
|
|
|
export default function RootLayout() {
|
2024-10-09 16:55:16 -05:00
|
|
|
const [isSignedIn, setIsSignedIn] = useState(false);
|
|
|
|
if (!isSignedIn) {
|
|
|
|
return (
|
|
|
|
<SignInScreen onSignIn={() => setIsSignedIn(true)} />
|
|
|
|
);
|
|
|
|
}
|
2024-10-08 12:25:29 -05:00
|
|
|
return (
|
2024-10-09 16:55:16 -05:00
|
|
|
<PushNotificationManager>
|
|
|
|
<Stack>
|
|
|
|
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
|
|
|
|
<Stack.Screen name="+not-found" />
|
|
|
|
</Stack>
|
|
|
|
</PushNotificationManager>
|
2024-10-08 12:25:29 -05:00
|
|
|
);
|
|
|
|
}
|