-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
30 lines (26 loc) · 847 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 React, {Component} from 'react';
import { Provider } from 'react-redux';
import { ApolloProvider } from 'react-apollo';
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';
// Import custome files here
import configureStore from './src/redux/store';
import { Root } from './src/navigators/AppNavigator';
import { NETWORK_INTERFACE } from './src/config';
console.disableYellowBox = true;
const apolloClient = new ApolloClient({
link: new HttpLink({ uri: NETWORK_INTERFACE }),
cache: new InMemoryCache()
})
export default class App extends Component {
render() {
return (
<Provider store={configureStore}>
<ApolloProvider client={apolloClient}>
<Root />
</ApolloProvider>
</Provider>
);
}
}