|
@ -1,10 +1,9 @@ |
|
|
import React, { useState, useEffect} from "react"; |
|
|
import React, { useState, useEffect} from "react"; |
|
|
import { NavigationContainer } from "@react-navigation/native"; |
|
|
|
|
|
|
|
|
import { NavigationContainer } from '@react-navigation/native'; |
|
|
|
|
|
|
|
|
import navigationTheme from "./app/navigation/navigationTheme"; |
|
|
import navigationTheme from "./app/navigation/navigationTheme"; |
|
|
import "./app/config/globals.js"; |
|
|
import "./app/config/globals.js"; |
|
|
import { AppLoading } from "expo"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import AppLoading from 'expo-app-loading'; |
|
|
import FlashMessage from "react-native-flash-message"; |
|
|
import FlashMessage from "react-native-flash-message"; |
|
|
import AppNavigator from "./app/navigation/AppNavigator"; |
|
|
import AppNavigator from "./app/navigation/AppNavigator"; |
|
|
import EventLocationProvider from "./app/context/EventLocationContext"; |
|
|
import EventLocationProvider from "./app/context/EventLocationContext"; |
|
@ -38,7 +37,7 @@ export default function App() { |
|
|
|
|
|
|
|
|
if (!isReady && netInfo.isInternetReachable) { |
|
|
if (!isReady && netInfo.isInternetReachable) { |
|
|
return ( |
|
|
return ( |
|
|
<AppLoading startAsync={restoreUser} onFinish={() => setIsReady(true)} /> |
|
|
|
|
|
|
|
|
<AppLoading startAsync={restoreUser} onFinish={() => setIsReady(true)} onError={(e) => console.log(e)} /> |
|
|
); |
|
|
); |
|
|
} else if (netInfo.isInternetReachable) { |
|
|
} else if (netInfo.isInternetReachable) { |
|
|
global.formsSockets = useFiltering(global.location); |
|
|
global.formsSockets = useFiltering(global.location); |
|
|