forked from cesiabulnes/clean-slate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
94 lines (89 loc) · 2.16 KB
/
App.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
import React from "react";
import Button from "apsl-react-native-button";
import { StyleSheet, Text, View, Image } from "react-native";
//import { Button } from 'react-native-elements';
import { StackNavigator } from "react-navigation";
export class HomeScreen extends React.Component {
static navigationOptions = {
title: "Home"
};
render() {
return (
<View style={styles.container}>
<Image source={{uri: 'https://i.imgur.com/AIeJqA8.jpg'}}
style={styles.backgroundimage} />
<View style={styles.title}>
<Image source={{uri: 'https://i.imgur.com/ZePMWl7.png'}}
style={styles.logo} />
<Text style={styles.title}>How are you feeling?</Text>
</View>
<View style={styles.actionsContainer}>
<Button
style={{ backgroundColor: "rgba(0,0,200,.2)", borderWidth: 0, marginBottom: 20 }}
textStyle={{ fontSize: 24}}
>
Sad 😢
</Button>
<Button
style={{ backgroundColor: "rgba(0,0,200,.2)", borderWidth: 0, marginBottom: 20 }}
textStyle={{ fontSize: 24 }}
>
Happy 😊
</Button>
<Button
style={{ backgroundColor: "rgba(0,0,200,.2)", borderWidth: 0, marginBottom: 20 }}
textStyle={{ fontSize: 24 }}
>
Angry 😡
</Button>
</View>
</View>
);
}
_handlePress = () => {
this.props.navigation.navigate("Home");
};
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "transparent",
alignItems: "center",
},
title: {
fontFamily: "Helvetica Neue",
alignItems: "center",
justifyContent: "flex-start",
marginBottom: 10,
fontSize: 20,
color: '#555555'
},
actionsContainer: {
backgroundColor: '#fafafa',
width: 300,
paddingTop: 30,
paddingBottom: 15,
paddingHorizontal: 40,
borderRadius: 22,
},
backgroundimage:{
width: '100%',
height: '100%',
position: 'absolute',
opacity: 0.71
},
logo:{
width: 300,
height: 58,
marginTop: 30,
marginBottom: 50
},
someButtonStyle1: {
color: "blue"
}
});
export default StackNavigator({
Home: {
screen: HomeScreen
}
});