forked from Eas0nS/Odometer-Terminator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClaim.js
More file actions
220 lines (209 loc) · 5.42 KB
/
Claim.js
File metadata and controls
220 lines (209 loc) · 5.42 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
import React from 'react';
import { StyleSheet, Text, View, Button, ScrollView, TouchableOpacity, TextInput, Platform, Image } from 'react-native';
import * as ImagePicker from 'expo-image-picker';
class Appointment extends React.Component {
state = {
email: '',
subject: '',
description: '',
filePath: {}
}
render() {
const pickImage = async () => {
let result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.All,
allowsEditing: true,
aspect: [4, 3],
quality: 1,
});
console.log(result);
if (!result.cancelled) {
setImage(result.uri);
}
};
return (
<ScrollView
style={styles.container}
>
<Image
style= {styles.backgroundImage}
source= {require('./assets/newBG3.png')}
/>
<View>
<View style={styles.container2}>
<Text style={styles.claim}>
Need to report a claim?
</Text>
<Text style={styles.subtitle}>
Accidents can be stressful, but filling your claim shouldn't be. Get started
now and we'll guide you through the entire process.
</Text>
<TouchableOpacity
style={styles.claimButton}
onPress={() =>
this.props.navigation.navigate('Report')}
>
<Text style={styles.claimButtonText}> REPORT A CLAIM </Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.claimButton}
>
<Text style={styles.claimButtonText}> ACCIDENT CHECKLIST </Text>
</TouchableOpacity>
</View>
<Text style={[{color: 'white'}, {marginTop: 50}, {marginLeft: 20}, {fontWeight: 'bold'}, {fontSize: 35}]}>CLAIMS TOOLS</Text>
<View style={styles.container3}>
<TouchableOpacity
style={styles.list}
onPress={() =>
this.props.navigation.navigate('')}
>
<Text style={styles.listText}>View Claim</Text>
<Text style={styles.sideText}> ▶ </Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.list}
onPress={() =>
this.props.navigation.navigate('')}
>
<Text style={styles.listText}>Find Auto Repair Shops</Text>
<Text style={styles.sideText}> ▶ </Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.list}
onPress={() =>
this.props.navigation.navigate('')}
>
<Text style={styles.listText}>Find Glass Repair Shops</Text>
<Text style={styles.sideText}> ▶ </Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.list}
onPress={() =>
this.props.navigation.navigate('')}
>
<Text style={styles.listText}>Call Roadside Assistance</Text>
<Text style={styles.sideText}> ▶ </Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.list}
onPress={() =>
this.props.navigation.navigate('')}
>
<Text style={styles.listText}>Claims FAQ</Text>
<Text style={styles.sideText}> ▶ </Text>
</TouchableOpacity>
</View>
</View>
</ScrollView>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#161620'
},
container2: {
backgroundColor: '#1d1d2a',
borderColor: '#1d1d2a',
opacity: 0.9,
width: 370,
height: 290,
borderRadius:10,
borderWidth: 1,
marginLeft: 25,
marginTop: 30,
opacity: 1
},
container3: {
flexDirection: 'column',
backgroundColor: '#1d1d2a',
width: 415,
height: 230,
marginTop: 10,
opacity: 1
},
scrollView: {
backgroundColor: 'pink',
},
list: {
flexDirection: 'row',
marginTop: 10,
marginBottom: 10,
marginLeft: 15,
},
sideText: {
color: 'white',
fontWeight: 'bold',
flex: 1,
},
listText: {
flex: 7,
color: 'white',
fontSize: 20,
},
claim: {
color: 'white',
fontSize: 30,
textAlign: 'left',
marginLeft: 15,
marginTop: 15,
marginBottom: 15
},
subtitle: {
color: 'white',
fontSize: 18,
marginLeft: 15,
},
claimButton: {
alignItems: 'center',
backgroundColor: '#0ad48a',
borderColor: '#0ad48a',
width: 300,
height: 40,
borderRadius: 5,
marginTop: 25,
marginLeft: 30
},
claimButtonText: {
color: 'white',
fontWeight: 'bold',
fontSize: 25,
alignItems:'center',
justifyContent:'center',
paddingTop: 5,
},
input1: {
width: 300,
fontSize: 15,
height: 35,
borderRadius:7,
backgroundColor: 'white',
marginTop: 15,
marginLeft: 20,
marginBottom: 15,
padding: 5
},
input2: {
width: 300,
fontSize: 15,
height: 120,
borderRadius:7,
backgroundColor: 'white',
marginTop: 15,
marginLeft: 20,
marginBottom: 15,
padding: 5
},
backgroundImage:{
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
width:"100%",
height: 810
},
});
export default Appointment;