benkleintechnologies / Guardia

0 stars 0 forks source link

Fix automatic navigation based on authentication #8

Closed benkleintechnologies closed 4 months ago

benkleintechnologies commented 5 months ago

Login works with Firebase, but even though the app knows it was authenticated, it stays on the login screen and doesn't navigate to the Main/Map screen. The AppNavigator.tsx is supposed to navigate to the correct screen depending if the user is authenticated.

benkleintechnologies commented 4 months ago

Fixed by adding AuthProvider in App.tsx and handling navigation properly through useAuth.tsx