-
Notifications
You must be signed in to change notification settings - Fork 7
/
App.js
43 lines (40 loc) · 1.23 KB
/
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
43
import React from 'react';
import {StatusBar, StyleSheet, View} from 'react-native';
import { NativeRouter, Route} from 'react-router-native'
import Header from './src/__client__/Header';
import Stages from './src/__client__/stage/Stages';
import StageDetails from './src/__client__/stage/StageDetails';
import Navigation from './src/__client__/navigation/Navigation';
import Artists from './src/__client__/artists/Artists';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<StatusBar barStyle="light-content" backgroundColor="#000088"/>
<NativeRouter>
<View style={{flex: 1}}>
<View style={styles.viewContainer}>
<Route exact path="/" component={Stages}/>
<Route path="/stage/:id" component={StageDetails}/>
<Route path="/artists" component={Artists}/>
</View>
<Navigation style={styles.navigation}/>
</View>
</NativeRouter>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
viewContainer: {
flex: 1,
justifyContent: 'space-between'
},
contentContainer: {
flex: 1
},
});