-
Notifications
You must be signed in to change notification settings - Fork 0
/
welcomeScreen.js
161 lines (150 loc) · 3.82 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/* @flow */
'use strict';
import React, { Component, PropTypes } from 'react';
import {
Text
, ScrollView
, Image
, StyleSheet
, TouchableHighlight
, View
} from 'react-native';
const VBSRegistrationForm = require('./VBSRegistrationForm.js');
class WelcomeScreen extends Component {
static propTypes = {
title: PropTypes.string.isRequired,
navigator: PropTypes.object.isRequired,
}
constructor(props, context) {
super(props, context);
this.onForward = this.onForward.bind(this);
this.onBack = this.onBack.bind(this);
// this.title = this.props.title;
}
onForward() {
this.props.navigator.push({
component: VBSRegistrationForm,
title: 'VBS Registration Form'
});
}
onBack() {
}
render() {
return (
<ScrollView
style={welcomeScreenStyles.container}
>
<View style={welcomeScreenStyles.imgContainer}>
<Image
source={require('./img/cave-quest-vbs-logo-LoRes-RGB.png')}
style={welcomeScreenStyles.logo}
/>
</View>
<Text style={welcomeScreenStyles.welcomeText}>
Welcome to the ORUMC Cave Quest Registration App!
</Text>
<Text style={welcomeScreenStyles.dateText}>
June 19-24, 2016 6:15 - 8:45pm, SUNDAY - Friday
</Text>
<Text style={welcomeScreenStyles.sectionHeader3}>
Preschool VBS is for age 3-5 years and Elementary VBS for
Kindergarten - 5th grade.
</Text>
<Text style={welcomeScreenStyles.sectionHeader3}>
Older youth 6th - 10th grade will participate in VBS for Youth.
</Text>
<Text style={welcomeScreenStyles.sectionHeader3}>
A Nursery (0-2 years) is provided for parent volunteers and
participants of our adult classes.
</Text>
<Text style={welcomeScreenStyles.sectionHeader1}>
Please complete ONE app submission for EACH child regardless of age.
</Text>
<Text style={welcomeScreenStyles.sectionHeader3}>
By continuing, you understand your child(ren)''s picture(s) may
be placed on the church website.
</Text>
<TouchableHighlight
style={welcomeScreenStyles.button}
onPress={this.onForward}
underlayColor='#B09337'
>
<Text style={welcomeScreenStyles.buttonText}>Continue</Text>
</TouchableHighlight>
</ScrollView>
);
}
}
let welcomeScreenStyles = StyleSheet.create({
button: {
height: 36,
backgroundColor: '#5C3B69',
borderColor: '#5C3B69',
borderWidth: 1,
borderRadius: 8,
marginBottom: 10,
alignSelf: 'stretch',
justifyContent: 'center',
marginTop: 10
},
buttonText: {
fontSize: 18,
color: 'white',
alignSelf: 'center'
},
container: {
padding: 20,
backgroundColor: '#C8B8AA'
},
imgContainer: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
paddingBottom: 10,
},
logo: {
width: 100,
height: 90,
resizeMode: 'contain',
//flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
sectionHeader1: {
color: '#000000',
fontWeight: 'bold',
fontSize: 15,
fontStyle: 'italic',
textDecorationLine: 'underline',
textAlign: 'center'
},
welcomeText: {
color: '#878B3F',
fontWeight: 'bold',
fontSize: 14,
textAlign: 'center'
},
dateText: {
color: '#FEDC5C',
fontWeight: 'bold',
fontSize: 14,
textAlign: 'center'
},
sectionHeader3: {
color: '#000000',
fontWeight: '500',
fontSize: 10,
textAlign: 'center'
},
horizontalInputContainer: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center'
},
flexText: {
flex: 1,
padding: 2,
flexWrap: 'nowrap'
}
});
module.exports = WelcomeScreen;