-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
23 lines (21 loc) · 659 Bytes
/
Copy pathApp.js
File metadata and controls
23 lines (21 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React, { Component } from 'react';
import { View } from 'react-native';
import { Provider } from 'react-redux';
import { store, persistor } from 'store';
import { Loading } from 'components';
import { PersistGate } from 'redux-persist/es/integration/react';
import Navigation from './app/index';
type Props = any;
export default class App extends Component<Props> {
render() {
return (
<Provider store={store}>
<PersistGate loading={<Loading />} persistor={persistor}>
<View style={{ flex: 1, backgroundColor: '#fff' }}>
<Navigation />
</View>
</PersistGate>
</Provider>
);
}
}