-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
32 lines (29 loc) · 919 Bytes
/
Copy pathApp.js
File metadata and controls
32 lines (29 loc) · 919 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
import { StatusBar } from 'expo-status-bar';
import { NativeRouter } from 'react-router-native';
import { ApolloProvider } from '@apollo/client';
import Main from './src/components/Main';
import createApolloClient from './src/utils/apolloClient';
import AuthStorage from './src/utils/authStorage';
import AuthStorageContext from './src/contexts/AuthStorageContext';
const authStorage = new AuthStorage();
const apolloClient = createApolloClient(authStorage);
const App = () => {
return (
<>
<NativeRouter
future={{
v7_startTransition: true,
v7_relativeSplatPath: true,
}}
>
<ApolloProvider client={apolloClient}>
<AuthStorageContext.Provider value={authStorage}>
<Main />
</AuthStorageContext.Provider>
</ApolloProvider>
</NativeRouter>
<StatusBar style="light" />
</>
);
};
export default App;