-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWelcome.js
More file actions
139 lines (133 loc) · 3.04 KB
/
Copy pathWelcome.js
File metadata and controls
139 lines (133 loc) · 3.04 KB
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
import React from 'react'
import {
View,
Text,
StyleSheet,
TouchableOpacity
} from 'react-native'
import Divider from '../components/Divider';
import AppIntro from 'react-native-app-intro';
export class Welcome extends React.Component {
onLogin() {
}
onSignup() {
const {navigation} = this.props.actions;
navigation.push('public.signup')
}
render() {
return (
<View style={styles.container}>
<View style={styles.introContainer}>
<AppIntro
customStyles={{
flex: 1
}}
defaultIndex={0}
renderSkipButton={false}
renderDoneButton={false}
paginationStyles={{
bottom: 100
}}
dotStyles={{
width: 8,
height: 8,
}}>
<View style={[styles.slide]}>
<View>
<Text style={styles.heading}>
Welcome screen
</Text>
</View><View level={4}>
<Text style={styles.heading}>
Some image
</Text>
</View>
</View>
<View style={[styles.slide]}>
<View>
<Text style={styles.heading}>
Welcome screen
</Text>
</View><View level={4}>
<Text style={styles.heading}>
Some image
</Text>
</View>
</View>
</AppIntro>
</View>
<View style={styles.buttonContainer}>
<TouchableOpacity
onPress={this.onSignup.bind(this)}
style={styles.button}>
<Text style={styles.btnText}>
Sign up
</Text>
</TouchableOpacity>
<Divider color={'#bbb'} />
<TouchableOpacity
onPress={this.onLogin.bind(this)}
style={styles.button}>
<Text style={styles.btnText}>
Login
</Text>
</TouchableOpacity>
</View>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column'
},
introContainer: {
flex: 6,
},
buttonContainer: {
flexDirection: 'row',
},
button: {
flex: 1,
height: 80,
backgroundColor: '#ff66bb',
marginLeft: 0,
marginRight: 0,
alignSelf: 'stretch',
justifyContent: 'center',
alignItems: 'center'
},
heading: {
fontSize: 24
},
btnText: {
fontSize: 18,
color: '#ffffff'
},
slide: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#abbccd',
}
});
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// justifyContent: 'center',
// alignItems: 'center',
// flexDirection: 'column'
// },
// getStartedBtn: {
// flex: 0.5,
// backgroundColor: 'blue'
// },
// slide: {
// flex: 2,
// justifyContent: 'center',
// alignItems: 'center',
// backgroundColor: '#abcccd'
// }
// })
export default Welcome