-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindGameScreen.js
163 lines (157 loc) · 4.74 KB
/
FindGameScreen.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
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
import React, { useState } from "react";
import {
View,
Text,
TextInput,
TouchableOpacity,
StyleSheet,
Image,
ImageBackground,
} from "react-native";
import NavigationBar from "./component/NavigationBar";
import MapView, { Marker, Callout } from "react-native-maps";
// import * as Font from 'expo-font';
import Icon from "react-native-vector-icons/FontAwesome";
// naloži pisavo Roboto iz sistema na začetku aplikacije
// async function loadFonts() {
// await Font.loadAsync({
// 'Roboto': require('./fonts/Roboto-Bold.ttf'),
// 'Roboto_thin': require('./fonts/Roboto-Thin.ttf'),
// });
// }
// loadFonts();
const FindGameScreen = () => {
const [buttonColor, setButtonColor] = useState("#2FDD37");
const handlePress = () => {
setButtonColor("#FFA500");
};
return (
<MapView
style={{ flex: 1 }}
initialRegion={{
latitude: 46.0569465,
longitude: 14.5057515,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}
>
<Marker
coordinate={{ latitude: 46.051173, longitude: 14.487277 }}
title="Univerzitetna Športna Dvorana Rožna Dolina"
description="Event bo potekal ob 14:00"
>
<Callout tooltip>
<View>
<Text style={{ fontWeight: "bold" }}>
Univerzitetna Športna Dvorana Rožna Dolina
</Text>
<Text>Date: 4.5.2023 Time: 14:00</Text>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>JOIN</Text>
</TouchableOpacity>
</View>
</Callout>
</Marker>
<Marker
coordinate={{ latitude: 46.0589135, longitude: 14.4948999 }}
title="Goran Dragic Basketball Court"
description="Date: 3.4.2023 Time: 15:00"
>
<Callout tooltip>
<View>
<Text style={{ fontWeight: "bold" }}>
Goran Dragic Basketball Court
</Text>
<Text>Date: 3.4.2023 Time: 15:00</Text>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>JOIN</Text>
</TouchableOpacity>
</View>
</Callout>
</Marker>
<Marker
coordinate={{ latitude: 46.0601024, longitude: 14.4944168 }}
title="Hala Tivoli"
description="Date: 3.4.2023 Time: 17:00"
>
<Callout tooltip>
<View>
<Text style={{ fontWeight: "bold" }}>Hala Tivoli</Text>
<Text>Date: 3.4.2023 Time: 17:00</Text>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>JOIN</Text>
</TouchableOpacity>
</View>
</Callout>
</Marker>
<Marker
coordinate={{ latitude: 46.0684209, longitude: 14.5059426 }}
title="Sports center Triglav"
description="Date: 5.4.2023 Time: 17:00"
>
<Callout tooltip>
<View>
<Text style={{ fontWeight: "bold" }}>Sports center Triglav</Text>
<Text>Date: 10.4.2023 Time: 17:00</Text>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>JOIN</Text>
</TouchableOpacity>
</View>
</Callout>
</Marker>
<Marker
coordinate={{ latitude: 46.0684209, longitude: 14.5059426 }}
title="Sports center Triglav"
description="Date: 5.4.2023 Time: 17:00"
>
<Callout tooltip>
<View>
<Text style={{ fontWeight: "bold" }}>Sports center Triglav</Text>
<Text>Date: 10.4.2023 Time: 17:00</Text>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>JOIN</Text>
</TouchableOpacity>
</View>
</Callout>
</Marker>
<Marker
coordinate={{ latitude: 46.0510558, longitude: 14.5531833 }}
title="Kosarkarsko igrisce Fuzine"
description="Date: 11.4.2023 Time: 16:00"
>
<Callout tooltip>
<View>
<Text style={{ fontWeight: "bold" }}>
Kosarkarsko igrisce Fuzine
</Text>
<Text>Date: 11.4.2023 Time: 16:00</Text>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>JOIN</Text>
</TouchableOpacity>
</View>
</Callout>
</Marker>
{/* <NavigationBar style={styles.nav}/> */}
</MapView>
);
};
const styles = StyleSheet.create({
nav: {
bottom: 0
},
button: {
backgroundColor: "#2FDD37",
width: "50%",
height: 30,
padding: 5,
borderRadius: 5,
marginTop: 10,
marginLeft: 40,
},
buttonText: {
color: "#fff",
textAlign: "center",
fontWeight: "bold",
},
});
export default FindGameScreen;