-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathApp.js
More file actions
33 lines (27 loc) · 871 Bytes
/
App.js
File metadata and controls
33 lines (27 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { StatusBar } from "expo-status-bar";
import React, { useContext, useEffect, useState } from "react";
import { StyleSheet, Text, View } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import Toast from "react-native-toast-message";
// Context API
import Auth from "./Context/store/Auth";
import AuthGlobal from "./Context/store/AuthGlobal";
// Navigators
import Main from "./Navigators/Main";
//Screens
import Header from "./Shared/Header";
export default function App() {
const [isLoading, setIsLoading] = useState(true);
// useEffect(() => {
// context.stateUser.isAuthenticated;
// }, [context.stateUser.isAuthenticated]);
return (
<Auth>
<NavigationContainer>
<Header />
<Main />
<Toast ref={(ref) => Toast.setRef(ref)} />
</NavigationContainer>
</Auth>
);
}