-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
35 lines (30 loc) · 855 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
import React from 'react';
import { Provider } from 'react-redux';
import { StyleSheet, View } from 'react-native';
import { NativeRouter, Route, Switch } from 'react-router-native'
import LoginPage from './containers/LoginPage';
import LandingPage from './containers/LandingPage';
import store from './store'
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<NativeRouter>
<View style={styles.container}>
<Switch>
<Route exact path="/" component={LandingPage} />
<Route path="/login" component={LoginPage} />
</Switch>
</View>
</NativeRouter>
</Provider>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});