-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWelcomeScreen.js
87 lines (83 loc) · 2 KB
/
WelcomeScreen.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
Dimensions,
Button
} from 'react-native';
export default class WelcomeScreen extends React.Component {
static navigationOptions = {
header: null,
};
render() {
return (
<View style={styles.container}>
<View style={styles.welcomeContainer}>
<Text style={styles.welcomeText}>Welcome</Text>
<Text style={styles.welcomeText}>to Dingo.</Text>
<Image style = {styles.welcomePhoto}
source={require('./dingotransparent.png')} />
<Text style={styles.welcomeDescription}>Let{`'`}s make sure</Text>
<Text style={styles.welcomeDescription}>your friends get</Text>
<Text style={styles.welcomeDescription}>home safe.</Text>
<TouchableOpacity onPress={() => this.props.navigation.navigate('Login')}>
<View style={styles.loginButton}>
<Text style={styles.loginText}>JOIN THE PACK</Text>
</View>
</TouchableOpacity>
</View>
</View>
);
}
}
const window = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#191979',
},
contentContainer: {
paddingTop: 30,
},
welcomeContainer: {
paddingTop: 80,
alignItems: 'center',
marginHorizontal: 50,
},
welcomeText: {
alignItems: 'center',
fontSize: 54,
fontFamily: 'Avenir',
color: '#fff',
},
welcomePhoto: {
marginTop: 40,
marginBottom: 40,
width: 92,
height: 137,
},
welcomeDescription: {
color: '#fff',
fontSize: 28,
},
loginButton: {
margin: 20,
padding: 10,
borderRadius: 30,
backgroundColor: '#FFFFFF',
width: window.width / 2,
alignItems: 'center',
shadowOffset: {width: 0, height: 4},
shadowOpacity: 0.25,
shadowRadius: 4,
shadowColor: '#000000',
},
loginText: {
color: '#171797',
},
});