-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (22 loc) · 776 Bytes
/
Copy pathApp.js
File metadata and controls
25 lines (22 loc) · 776 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
import { StatusBar } from "expo-status-bar";
import { NavigationContainer } from "@react-navigation/native";
import Navigation from "./src/navigation";
import { Amplify } from "aws-amplify";
import { withAuthenticator } from "aws-amplify-react-native";
import awsExports from "./src/aws-exports";
import AuthContext from "./src/contexts/AuthContext";
import OrderContextProvider from "./src/contexts/OrderContext";
Amplify.configure({ ...awsExports, Analytics: { disabled: true } });
function App() {
return (
<NavigationContainer>
<AuthContext>
<OrderContextProvider>
<Navigation />
</OrderContextProvider>
</AuthContext>
<StatusBar style="auto" />
</NavigationContainer>
);
}
export default withAuthenticator(App);