-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathStartScreen.js
50 lines (46 loc) · 940 Bytes
/
StartScreen.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
import React, { Component } from 'react'
import {
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
} from 'react-native'
const zenImage = require('./assets/zen.png')
class StartScreen extends Component {
render() {
return (
<View style={styles.container}>
<TouchableOpacity style={styles.button} onPress={this.props.onStartHandler}>
<Image source={zenImage} style={styles.buttonImage} />
<Text style={styles.readyText}>I'm ready to relax...</Text>
</TouchableOpacity>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#889dad',
},
readyText: {
fontSize: 20,
fontStyle: 'italic',
marginTop: 20,
color: '#ffffff',
},
button: {
backgroundColor: '#889dad',
borderRadius: 20,
padding: 10,
marginBottom: 20,
},
buttonImage: {
width: 200,
height: 200,
},
})
export default StartScreen