-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
25 lines (23 loc) · 854 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
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import NavigationService from './src/common/navigationService';
import Router from './src/common/router';
import Store from './src/common/store';
import FullscreenLoader from './src/components/FullscreenLoader';
class App extends Component {
render() {
return (
<Provider store={Store.store}>
<PersistGate loading={<FullscreenLoader />} persistor={Store.persistor}>
<Router
ref={navigatorRef => {
NavigationService.setTopLevelNavigator(navigatorRef);
}}
/>
</PersistGate>
</Provider>
);
}
}
export default App;