-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
42 lines (36 loc) · 976 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
35
36
37
38
39
40
41
42
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
import React from 'react';
import { Text } from 'native-base';
import SignInRouter from './routers/SignInRouter';
// Used to Provide Redux store to all child components
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/lib/integration/react';
import Loading from './components/Loading';
import { persistor, store } from './store/configureStore';
import StartUpRouter from './routers/StartUpRouter';
// const store = configureStore();
export default class App extends React.Component {
constructor(props) {
super(props);
}
render() {
console.log('About to render')
return (
<Provider store={store}>
<PersistGate
loading={<Loading/>}
persistor={persistor}
>
<StartUpRouter/>
</PersistGate>
</Provider>
)
}
}