-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartScreen.js
54 lines (48 loc) · 1.1 KB
/
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
51
52
53
54
import React from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
} from 'react-native';
const zenImage = require('./assets/zenImage.jpeg');
class StartScreen extends React.Component {
static navigationOptions = {
header : null
}
render() {
return (
<View style={styles.container}>
<TouchableOpacity style= {styles.button} onPress= {() => this.props.navigation.navigate('Home')}>
<Image source={zenImage} style={styles.buttonImage}/>
<Text style={styles.readText}>I'm ready to relax...</Text>
</TouchableOpacity>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ffffff',
alignItems: 'center',
justifyContent: 'center',
},
readText : {
marginLeft : 30,
fontSize : 20,
fontStyle : 'italic',
color : '#000',
},
button : {
backgroundColor : '#ffffff',
padding : 10,
marginBottom : 20,
},
buttonImage : {
width : 200,
height : 200,
}
});
export default StartScreen;