-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (21 loc) · 784 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
import React from 'react';
import { AppRegistry ,View,Text} from 'react-native';
import { ApolloClient } from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
import { createHttpLink } from 'apollo-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';
//import Stories from "./storybook/"
import Router from './Routes/index';
const Client = new ApolloClient({
link: createHttpLink({ uri: 'https://api-euwest.graphcms.com/v1/cjq6gabwabltl01bn1hwrbrym/master' }),
cache: new InMemoryCache(),
});
const App = () => (
<ApolloProvider client={Client}>
{/* <Stories/> */}
<Router/>
</ApolloProvider>
);
AppRegistry.registerComponent('MyApplication', () => App);
//export default from './storybook';
export default App;