-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (26 loc) · 783 Bytes
/
index.js
File metadata and controls
28 lines (26 loc) · 783 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
import 'onsenui/css/onsenui.css';
import './custom/onsen-css-components.css';
import "./css/flipfolio.css";
import initJS from './initJS';
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from 'react-redux';
import { persistStore } from 'redux-persist';
import { ApolloProvider } from 'react-apollo';
import store, { persistOptions } from './configurationStore';
import client from './configurationApolloClient';
import AppNavigator from './AppNavigator';
const render = () => {
ReactDOM.render(
<Provider store={store}>
<ApolloProvider client={client}>
<AppNavigator />
</ApolloProvider>
</Provider>
, document.getElementById("root")
);
};
persistStore(store, persistOptions, () => {
render();
initJS();
});