-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
36 lines (29 loc) · 728 Bytes
/
App.js
File metadata and controls
36 lines (29 loc) · 728 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
32
33
34
35
36
/**
*
* @format
* @flow
*/
import React from 'react';
import { StatusBar } from 'react-native';
import { Root } from 'native-base';
import { Provider } from 'react-redux';
import configureStore from './store';
import { PersistGate } from 'redux-persist/integration/react';
import { persistStore } from 'redux-persist';
import Home from './containers/Home';
const store = configureStore();
class App extends React.Component {
render() {
const persistor = persistStore(store);
return (
<Root>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Home />
</PersistGate>
</Provider>
</Root>
)
}
}
export default App;