forked from Grtchn/wondArland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
executable file
·59 lines (56 loc) · 1.91 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import React, { Component } from 'react';
import { View, StyleSheet } from 'react-native';
import { NativeRouter, Route, Switch } from 'react-router-native';
import { Provider } from 'react-redux';
import { COLOR } from 'react-native-material-ui';
import store from './store';
import Home from './screens/Home';
import Login from './screens/LogIn';
import Signup from './screens/Signup';
import Instructions from './screens/Instructions';
import Loser from './screens/LoserScreen';
import PasswordScreen from './screens/PasswordScreen';
import Message from './screens/MessageScreen';
import EntryARScene from './ARScenes/EntryScene';
import Stuck from './screens/Stuck';
const uiTheme = {
palette: {
primaryColor: COLOR.teal700,
accentColor: COLOR.deepOrange700,
backgroundColor: COLOR.teal300,
color: COLOR.deepOrange900,
},
};
export default class App extends Component {
render() {
console.disableYellowBox = true;
const { history } = this.props;
return (
<Provider store={store}>
<NativeRouter>
<View style={styles.outer}>
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/login" component={Login} />
<Route exact path="/signup" component={Signup} />
<Route exact path="/instructions" component={Instructions} />
<Route exact path="/entryarscene" component={EntryARScene} />
<Route exact path="/loser" component={Loser} />
<Route exact path="/password" component={PasswordScreen} />
<Route exact path="/message" component={Message} />
<Route exact path="/stuck" component={Stuck} />
</Switch>
</View>
</NativeRouter>
</Provider>
);
}
}
let styles = StyleSheet.create({
outer: {
flex: 1,
flexDirection: 'row',
alignItems: 'center',
backgroundColor: '#04152b',
},
});