-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
30 lines (26 loc) · 993 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
import { StatusBar } from "expo-status-bar";
import { StyleSheet, View } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import RootNavigator from "./src/navigation";
import { Amplify } from "aws-amplify";
import config from "./src/aws-exports";
import { withAuthenticator } from "aws-amplify-react-native/dist/Auth";
import AuthContextProvider from "./src/context/AuthContext";
import BasketContextProvider from "./src/context/BasketContext";
import OrderContextProvider from "./src/context/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);