This repository was archived by the owner on Feb 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathextraComponents.js
More file actions
70 lines (68 loc) · 1.5 KB
/
extraComponents.js
File metadata and controls
70 lines (68 loc) · 1.5 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
// render card
<Card title={job.title} containerStyle={{ height: 600 }}>
<View style={{ height: 300, marginBottom: 20 }}>
<MapView
scrollEnabled={false}
style={{ flex: 1 }}
cacheEnabled={true}
initialRegion={{
longitude: -122,
latitude: 37,
longitudeDelta: 0.04,
latitudeDelta: 0.09
}}
/>
</View>
<View
style={{
flexDirection: "row",
justifyContent: "space-around",
marginBottom: 10
}}
>
<Text>{job.company}</Text>
<Text>{job.type}</Text>
</View>
<HTML html={jobDesc} />
</Card>
// render no more cards
<Card title="No more jobs!">
<Button
title="Back To Map"
icon={{ name: "my-location", color: "white" }}
buttonStyle={{ backgroundColor: "#E43F3F", height: 50 }}
onPress={() => {}}
/>
</Card>
// Review Card
<Card title={title} titleStyle={{ fontSize: 15 }} key={id}>
<View style={{ height: 200 }}>
<MapView
style={{ flex: 1 }}
cacheEnabled={true}
scrollEnabled={false}
initialRegion={{
longitude: -122,
latitude: 37,
longitudeDelta: 0.04,
latitudeDelta: 0.09
}}
/>
</View>
<View
style={{
marginTop: 10,
marginBottom: 10,
flexDirection: "row",
justifyContent: "space-around"
}}
>
<Text style={{ fontStyle: "italic" }}>{company}</Text>
<Text style={{ fontStyle: "italic" }}>{created_at}</Text>
</View>
<Button
title="Apply Now!"
onPress={() => Linking.openURL(url)}
buttonStyle={{ backgroundColor: "#E43F3F" }}
/>
</Card>