-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.js
88 lines (84 loc) · 2.34 KB
/
dashboard.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
import { View, StyleSheet, Text, StatusBar } from 'react-native';
import { Icon, Button, Card } from 'react-native-elements';
export default function Dashboard({ navigation }) {
return (
<View style={styles.container}>
<Card flex={0.7} borderRadius={20} width='90%' justifyContent='flex-end' >
<Icon size={200} name="person" />
<Text style={{ fontSize: 30 }}>Welcome Jean, ... </Text>
<StatusBar style="auto" />
</Card>
<View style={styles.container}>
<Text style={{ textAlign: 'center', fontWeight: 'bold', fontSize: 18 }}> Hi,</Text>
<Text style={{ textAlign: 'center', fontWeight: 'bold', fontSize: 17 }} >How are you doing today? :)</Text>
</View>
<View style={{ width: '90%', marginBottom: 50 }}>
<Text style={{ textAlign: 'center', fontWeight: 'bold', fontSize: 17 }}>Let's start by taking a picture or selecting your mood by clicking on the camera or the emoji below</Text>
<StatusBar style="auto" />
</View>
<View style={{ display: 'flex', flexDirection: 'row', marginBottom: 15, justifyContent: 'space-between' }}>
<View style={{ marginHorizontal: 40 }}>
<Button
type="clear"
icon={
<Icon size={55} name="camera" />
}
onPress={
() => {
navigation.navigate('Camera');
}
}
/>
</View>
<View style={{ marginHorizontal: 40 }}>
<Button
type="clear"
icon={
<Icon size={55} name="face" />
}
onPress={
() => {
navigation.navigate('MoodPicker');
}
}
/>
</View>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
camera: {
flex: 1,
width: "50%",
},
cameraContainer: {
flex: 1,
justifyContent: 'center',
},
camera: {
flex: 1,
},
cameraButtonContainer: {
flex: 1,
flexDirection: 'row',
backgroundColor: 'transparent',
margin: 64,
},
cameraButton: {
flex: 1,
alignSelf: 'flex-end',
alignItems: 'center',
},
text: {
fontSize: 24,
fontWeight: 'bold',
color: 'white',
},
});