-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.js
108 lines (99 loc) · 3.55 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
95
96
97
98
99
100
101
102
103
104
105
106
107
import React from "react";
import Button from "apsl-react-native-button";
import { StyleSheet, Text, View, Image } from "react-native";
import { StackNavigator } from 'react-navigation';
import {Router, Stack, Scene, Actions} from 'react-native-router-flux';
import {SecondScreen, DrawingPageSad,DrawingPageHappy,DrawingPageAngery } from './screens';
class HomeScreen extends React.Component {
// static navigationOptions = {
// title: 'Home',
// second: {screen: secondScreen},
// };
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
onPress = { () => Actions.second() }
style={{ backgroundColor: "#E4FFFE", borderWidth: 0, marginBottom: 20 }}
textStyle={{ fontSize: 24, color: "#555555"}}
>
Sad 😢
</Button>
<Button
onPress = { () => Actions.second() }
style={{ backgroundColor: "#E4FFFE", borderWidth: 0, marginBottom: 20 }}
textStyle={{ fontSize: 24, color: "#555555"}}
>
Happy 😊
</Button>
<Button
onPress = { () => Actions.second() }
style={{ backgroundColor: "#E4FFFE", borderWidth: 0, marginBottom: 20 }}
textStyle={{ fontSize: 24, color: "#555555"}}
>
Angery 😡
</Button>
</View>
</View>
);
}
}
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: 'transparent',
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"
}
});
const App = () => (
<Router>
<Stack key="root">
<Scene key="home" component={HomeScreen} initial={true} title="Home"/>
<Scene key="second" component={SecondScreen} title="Want To Feel"/>
<Scene key="drawingSad" component={DrawingPageSad} title="Drawing Page-Sad"/>
<Scene key="drawingHappy" component={DrawingPageHappy} title="Drawing Page-Happy"/>
<Scene key="drawingAngery" component={DrawingPageAngery} title="Drawing Page-Angery"/>
{/* <Scene key="home" component={Home}/> */}
</Stack>
</Router>
);
export default App