-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathAppWrapper.js
More file actions
31 lines (30 loc) · 840 Bytes
/
Copy pathAppWrapper.js
File metadata and controls
31 lines (30 loc) · 840 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
29
30
31
/**
* Copyright (c) 2019 CYBAVO, Inc.
* https://www.cybavo.com
*
* All rights reserved.
*/
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { store, persistor } from './store';
import AppNavigator from './AppNavigator';
import NavigationService from './NavigationService';
import { Root } from 'native-base';
import { PersistGate } from 'redux-persist/integration/react';
export default class AppWrapper extends Component {
render() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Root>
<AppNavigator
ref={navigatorRef => {
NavigationService.setTopLevelNavigator(navigatorRef);
}}
/>
</Root>
</PersistGate>
</Provider>
);
}
}