-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (32 loc) · 818 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
26
27
28
29
30
31
32
33
34
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from 'react';
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'
import { store , persistor } from './store'
import Loading from './src/sections/components/loading'
import AppLayout from './src/app'
import AppNavigator from './src/app-navigator'
//import AppNavigatorWithState from './src/app-navigator-with-state'
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<Provider
store = {store}
>
<PersistGate
loading = {<Loading />}
persistor = {persistor}
>
<AppLayout />
</PersistGate>
</ Provider>
);
}
}