-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
29 lines (26 loc) · 885 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
import React, {Component} from 'react';
import {View,Text,AsyncStorage} from 'react-native';
import { Router, Scene, Route,Drawer, Modal, Stack} from 'react-native-router-flux';
import { connect, Provider } from 'react-redux';
import Splash from './containers/Splash';
import Join from './containers/Join';
import reducers from './reducers';
const RouterWithRedux = connect()(Router);
const store = configureStore();
class App extends Component{
render(){
return (
<View style={{ flex: 1 }}>
<Provider store={store} /*persistor={persistor}*/>
<RouterWithRedux>
<Modal key="app" hideNavBar>
<Scene key="splash" component={Splash} hideNavBar/>
<Scene key="join" component={Join} hideNavBar initial/>
</Modal>
</RouterWithRedux>
</Provider>
</View>
);
}
}
export default App;