-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathNewTicket.tsx
53 lines (50 loc) · 1.38 KB
/
NewTicket.tsx
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
import React, { useState } from 'react'
import { StyleSheet, Text, View, TouchableOpacity, Picker } from 'react-native'
const NewTicket = ({navigation}) => {
return (
<View style={styles.container}>
<Text style={styles.choiceText}>What do you need help with?</Text>
<TouchableOpacity
style={styles.choices}
onPress={() => navigation.navigate('NewTicketDesc', {typeid: 100})}
>
<Text style={styles.choiceText}>Errands</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.choices}
onPress={() => navigation.navigate('NewTicketDesc', {typeid: 200})}
>
<Text style={styles.choiceText}>Conversation</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.choices}
onPress={() => navigation.navigate('NewTicketDesc', {typeid: 300})}
>
<Text style={styles.choiceText}>Household Chores</Text>
</TouchableOpacity>
</View>
)
}
export default NewTicket
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center'
},
choices: {
width: '82%',
backgroundColor: 'dodgerblue',
borderStyle: 'solid',
padding: 10,
borderRadius: 10,
borderWidth: 5,
borderColor: 'black',
display: 'flex',
alignItems: 'center',
margin: 10
},
choiceText: {
fontSize: 30,
},
})