-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoodPick.js
42 lines (42 loc) · 1.5 KB
/
moodPick.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
import { View, Text } from 'react-native';
import { Button, Card } from 'react-native-elements';
export default function MoodPicker({ navigation }) {
function goToJokes(mood) {
navigation.navigate('DadJokes', {
mood: mood
});
}
return (
<View style={{ flex: 1, justifyContent: 'center' }}>
<Card borderRadius={20} flex={0.5} justifyContent='center'>
<Text style={{ fontSize: 50, textAlign: 'center' }}> MOOD </Text>
<Text style={{ fontSize: 30, textAlign: 'center' }}> ANALYSER </Text>
</Card>
<Card borderRadius={20}>
<Button type='clear' title="HAPPY"
onPress={() => goToJokes('HAPPY')}
/>
</Card >
<Card borderRadius={20}>
<Button type='clear' title='SAD'
onPress={() => goToJokes('SAD')}
/>
</Card >
<Card borderRadius={20}>
<Button type='clear' title='OKAY I GUESS'
onPress={() => goToJokes('OKAY')}
/>
</Card >
<Card borderRadius={20}>
<Button type='clear' title='SICK'
onPress={() => goToJokes('SICK')}
/>
</Card >
<Card borderRadius={20}>
<Button type='clear' title='NEUTRAL'
onPress={() => goToJokes('NEUTRAL')}
/>
</Card >
</View>
);
}