⬆ Bump apollo client
⬆ Bump dev dependencies
♻ Refactor ProofContainer into useProof (untested)
🚨 Format with prettier
26 lines
759 B
JavaScript
26 lines
759 B
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { PersistGate } from 'redux-persist/es/integration/react';
|
|
import Config from 'react-native-config';
|
|
import { ApolloClient, HttpLink, InMemoryCache, ApolloProvider } from '@apollo/client';
|
|
|
|
import Dusken from './Dusken';
|
|
import { store, persistor } from './reduxStore';
|
|
|
|
const apolloClient = new ApolloClient({
|
|
link: new HttpLink({ uri: `${Config.DUSKEN_API_URL}/api/graphql/` }),
|
|
cache: new InMemoryCache(),
|
|
});
|
|
|
|
export default function App() {
|
|
return (
|
|
<Provider store={store}>
|
|
<PersistGate loading={null} persistor={persistor}>
|
|
<ApolloProvider client={apolloClient}>
|
|
<Dusken />
|
|
</ApolloProvider>
|
|
</PersistGate>
|
|
</Provider>
|
|
);
|
|
}
|