-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
35 lines (30 loc) · 950 Bytes
/
App.js
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
34
35
import { StatusBar } from "expo-status-bar";
import RootNavigator from "./src/navigation";
import { NavigationContainer } from "@react-navigation/native";
import { Amplify } from "aws-amplify";
import { withAuthenticator } from "aws-amplify-react-native";
import config from "./src/aws-exports";
import AuthContextProvider from "./src/contexts/AuthContext";
import BasketContextProvider from "./src/contexts/BasketContext";
import OrderContextProvider from "./src/contexts/OrderContext";
Amplify.configure({
...config,
Analytics: {
disabled: true,
},
});
function App() {
return (
<NavigationContainer>
<AuthContextProvider>
<BasketContextProvider>
<OrderContextProvider>
<RootNavigator />
</OrderContextProvider>
</BasketContextProvider>
</AuthContextProvider>
<StatusBar style="light" />
</NavigationContainer>
);
}
export default withAuthenticator(App);