forked from smartier-sprouts/qards-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
executable file
·67 lines (61 loc) · 1.58 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
60
61
62
63
64
65
66
67
import React from 'react';
import { StyleSheet, Text, View, TextInput, AppRegistry, Button, Picker } from 'react-native';
import { StackNavigator } from 'react-navigation';
import Lobby from './components/Lobby.js';
import Create from './components/Create.js';
import Rules from './components/Rules.js';
import RCTWebRCTDemo from './components/RCTWebRTCDemo.js';
class Welcome extends React.Component {
render() {
const { navigate } = this.props.navigation;
return (
<View style={styles.container}>
<Text style={styles.title}>Welcome</Text>
<View style={styles.display}>
<Text style={styles.nameText}>Qards</Text>
</View>
<Button
onPress={() => navigate('Lobby')}
title="Let's Play"
/>
<View>
<Text>Login Button Goes Here</Text>
<Button
onPress={() => navigate('RCTWebRCTDemo')}
title="VIDEO TEST"
/>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center'
},
display: {
height: 150,
width: 150,
backgroundColor: 'black',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center'
},
nameText: {
color: 'white',
},
title: {
fontSize: 24
}
});
const SimpleApp = StackNavigator({
Home: { screen: Welcome },
Lobby: { screen: Lobby },
Create: { screen: Create },
Rules: { screen: Rules },
RCTWebRCTDemo: { screen: RCTWebRCTDemo },
});
export default SimpleApp;