-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
24 lines (21 loc) · 747 Bytes
/
App.tsx
File metadata and controls
24 lines (21 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import React from 'react';
import { List } from './src/screens/List';
import 'react-native-gesture-handler';
import { StackNavigate } from './src/navigations/Main';
import { NavigationRef } from './src/common/Navigation';
const client = new ApolloClient({
uri: "http://localhost:3000/graphql",
cache: new InMemoryCache()
});
export const App = () => {
return (
<ApolloProvider client={client}>
<NavigationContainer ref={NavigationRef}>
<StackNavigate />
</NavigationContainer>
</ApolloProvider>
);
}