-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
25 lines (23 loc) · 814 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
import { Main } from "./src/components/Main";
import { NativeRouter } from "react-router-native";
import { StatusBar } from "expo-status-bar";
import { ApolloProvider } from "@apollo/client";
import { createApolloClient } from "./src/lib/apolloClient";
import { AuthStorage } from "./src/contexts/authStorage";
import { AuthStorageContext } from "./src/contexts/AuthStorageContext";
const authStorage = new AuthStorage();
const apolloClient = createApolloClient(authStorage);
export default function App() {
return (
<>
<NativeRouter>
<ApolloProvider client={apolloClient}>
<AuthStorageContext.Provider value={authStorage}>
<Main />
</AuthStorageContext.Provider>
</ApolloProvider>
</NativeRouter>
<StatusBar style='auto' />
</>
);
}