import React, { useContext } from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import { AuthProvider, AuthContext } from './src/context/AuthContext'; import { LocationProvider } from './src/context/LocationProvider'; import LoginScreen from './src/screen/LoginScreen'; import SelectionScreen from './src/screen/SelectionScreen'; import CameraScreen from './src/screen/CameraScreen'; import GpsScreen from './src/screen/GpsScreen'; import AnalysisScreen from './src/screen/AnalysisScreen'; import AgreementScreen from './src/screen/AgreementScreen'; import History from './src/screen/History'; const AuthStack = createStackNavigator(); const AppStack = createStackNavigator(); const AuthNavigator = () => ( ); const MainNavigator = () => ( ); const AppContent = () => { const { isLoggedIn, loading } = useContext(AuthContext); if (loading) { return null; } return ( {isLoggedIn ? : } ); }; export default () => ( );