expo-gaode-map 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/src/main/java/expo/modules/gaodemap/ExpoGaodeMapView.kt +34 -3
- package/build/ExpoGaodeMapView.d.ts.map +1 -1
- package/build/ExpoGaodeMapView.js +12 -0
- package/build/ExpoGaodeMapView.js.map +1 -1
- package/build/components/overlays/Circle.d.ts +1 -2
- package/build/components/overlays/Circle.d.ts.map +1 -1
- package/build/components/overlays/Circle.js +2 -31
- package/build/components/overlays/Circle.js.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/index.js.map +1 -1
- package/build/types/map-view.types.d.ts +36 -22
- package/build/types/map-view.types.d.ts.map +1 -1
- package/build/types/map-view.types.js.map +1 -1
- package/build/types/overlays.types.d.ts +2 -7
- package/build/types/overlays.types.d.ts.map +1 -1
- package/build/types/overlays.types.js.map +1 -1
- package/package.json +1 -1
- package/src/ExpoGaodeMapView.tsx +14 -3
- package/src/components/overlays/Circle.tsx +3 -39
- package/src/types/index.ts +1 -1
- package/src/types/map-view.types.ts +39 -23
- package/src/types/overlays.types.ts +2 -7
- package/test/ClockMapView.tsx +0 -532
- package/test/useMap.ts +0 -1360
package/test/ClockMapView.tsx
DELETED
|
@@ -1,532 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author : 尚博信_王强 wangqiang03@sunboxsoft.com
|
|
3
|
-
* @Date : 2025-03-11 09:29:07
|
|
4
|
-
* @LastEditors : 尚博信_王强 wangqiang03@sunboxsoft.com
|
|
5
|
-
* @LastEditTime : 2025-11-24 09:45:58
|
|
6
|
-
* @FilePath : /jintan-app/widget/ClockMapView.tsx
|
|
7
|
-
* @Description :
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) 2025 by 尚博信_王强, All Rights Reserved.
|
|
10
|
-
*/
|
|
11
|
-
import { Text, View } from "@/components/Themed";
|
|
12
|
-
import useMap from "@/hook/useMap";
|
|
13
|
-
import React, { useEffect, useMemo, useRef, useState } from "react";
|
|
14
|
-
|
|
15
|
-
import { useStyles, createStyleSheet } from "react-native-unistyles";
|
|
16
|
-
// import {
|
|
17
|
-
// MapType,
|
|
18
|
-
// MapView,
|
|
19
|
-
// Circle,
|
|
20
|
-
// Marker,
|
|
21
|
-
// } from "@/lib/amap3d";
|
|
22
|
-
import { Marker, Circle, MapView, MapType } from 'expo-gaode-map'
|
|
23
|
-
import { haversineDistance, isNotEmpty } from "@/utils/Fun";
|
|
24
|
-
import { DebouncePressable } from "@/components/Debounce.Button";
|
|
25
|
-
import { Image, InteractionManager, ActivityIndicator, StyleSheet } from "react-native";
|
|
26
|
-
import ImageAsset from "@/assets";
|
|
27
|
-
import usePermissions from "@/hook/usePermissions";
|
|
28
|
-
import { FontAwesome } from "@expo/vector-icons";
|
|
29
|
-
import useCameraStore, { Photo } from "@/store/useCameraStore";
|
|
30
|
-
import CommonConstants from "@/hook/constants/CommonConstants";
|
|
31
|
-
import useTeamsStore from "@/store/useTeamsStore";
|
|
32
|
-
import Animated, { FadeIn } from "react-native-reanimated";
|
|
33
|
-
import Button from "@/components/Button";
|
|
34
|
-
|
|
35
|
-
const iconUri = Image.resolveAssetSource(ImageAsset.positio_icon).uri;
|
|
36
|
-
|
|
37
|
-
const ClockMapView = () => {
|
|
38
|
-
|
|
39
|
-
const { styles, theme } = useStyles(styleSheet);
|
|
40
|
-
const { isLocationPermissions } = usePermissions();
|
|
41
|
-
const { photo, setPhoto } = useCameraStore();
|
|
42
|
-
const { clockType } = useTeamsStore();
|
|
43
|
-
const [isInitializing, setIsInitializing] = useState(true);
|
|
44
|
-
|
|
45
|
-
const {
|
|
46
|
-
mapViewRef,
|
|
47
|
-
data,
|
|
48
|
-
takePhoto,
|
|
49
|
-
ClockIn,
|
|
50
|
-
moveToCurrentLocation,
|
|
51
|
-
clockInCoord,
|
|
52
|
-
chooseClockRule,
|
|
53
|
-
clockRuleIndex,
|
|
54
|
-
clockRule,
|
|
55
|
-
chooseShift,
|
|
56
|
-
shifts,
|
|
57
|
-
shiftIndex,
|
|
58
|
-
clockRange,
|
|
59
|
-
setIsWithinRange,
|
|
60
|
-
isWithinRange,
|
|
61
|
-
mapState,
|
|
62
|
-
setMapState,
|
|
63
|
-
getClockInRule,
|
|
64
|
-
isSupportOutWork,
|
|
65
|
-
initialPosition
|
|
66
|
-
|
|
67
|
-
} = useMap();
|
|
68
|
-
|
|
69
|
-
// 同步计算文本尺寸的函数
|
|
70
|
-
const calculateTextSize = (text: string, fontSize = 12) => {
|
|
71
|
-
if (!text) return { width: 100, height: 40 };
|
|
72
|
-
|
|
73
|
-
// 计算中文字符和其他字符
|
|
74
|
-
const chineseChars = (text.match(/[\u4e00-\u9fa5]/g) || []).length;
|
|
75
|
-
const otherChars = text.length - chineseChars;
|
|
76
|
-
|
|
77
|
-
// 中文字符宽度约为 fontSize,英文约为 fontSize * 0.6
|
|
78
|
-
// 加上左右 padding (5 * 2) + 边框 (1 * 2) = 12
|
|
79
|
-
const estimatedWidth = Math.ceil(
|
|
80
|
-
chineseChars * fontSize + otherChars * fontSize * 0.6 + 22
|
|
81
|
-
);
|
|
82
|
-
|
|
83
|
-
// 高度 = 行高 + 上下 padding (5 * 2) + 边框 (1 * 2) = fontSize * 1.5 + 12
|
|
84
|
-
const estimatedHeight = Math.ceil(fontSize * 1.5 + 12);
|
|
85
|
-
|
|
86
|
-
return {
|
|
87
|
-
width: Math.max(estimatedWidth, 60), // 最小宽度 60
|
|
88
|
-
height: Math.max(estimatedHeight, 30) // 最小高度 30
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
let timers = useRef<NodeJS.Timeout | number>(0);
|
|
93
|
-
|
|
94
|
-
// 所有的 useMemo 和其他 Hooks 必须在组件顶层调用
|
|
95
|
-
const mapView = useMemo(() => {
|
|
96
|
-
// ✅ 必须等待 initialPosition 准备好才渲染 MapView
|
|
97
|
-
if (!initialPosition) {
|
|
98
|
-
return null;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return (
|
|
102
|
-
<Animated.View style={{ flex: 1 }}>
|
|
103
|
-
<MapView
|
|
104
|
-
style={{ flex: 1 }}
|
|
105
|
-
ref={mapViewRef}
|
|
106
|
-
onLoad={(nativeEvent) => {
|
|
107
|
-
setMapState(false);
|
|
108
|
-
}}
|
|
109
|
-
indoorViewEnabled={true}
|
|
110
|
-
zoomGesturesEnabled={true}
|
|
111
|
-
// buildingsEnabled={true}
|
|
112
|
-
userLocationRepresentation={{
|
|
113
|
-
showsAccuracyRing: false,
|
|
114
|
-
image: iconUri,
|
|
115
|
-
imageWidth: 40,
|
|
116
|
-
imageHeight: 40,
|
|
117
|
-
}}
|
|
118
|
-
trafficEnabled={true}
|
|
119
|
-
zoomControlsEnabled={false}
|
|
120
|
-
scaleControlsEnabled={false}
|
|
121
|
-
tiltGesturesEnabled={false}
|
|
122
|
-
compassEnabled={false}
|
|
123
|
-
// followUserLocation={false}
|
|
124
|
-
// onCameraIdle={({ nativeEvent }) => {}}
|
|
125
|
-
onLocation={({ nativeEvent }) => {
|
|
126
|
-
const { latitude, longitude } = nativeEvent;
|
|
127
|
-
if (!latitude || !longitude) return;
|
|
128
|
-
let index = clockInCoord.some((item) => {
|
|
129
|
-
const distance = haversineDistance(
|
|
130
|
-
{
|
|
131
|
-
latitude: item.lat || 0,
|
|
132
|
-
longitude: item.lon || 0,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
latitude: latitude || 0,
|
|
136
|
-
longitude: longitude || 0,
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
if (distance <= clockRange) {
|
|
140
|
-
return true;
|
|
141
|
-
} else {
|
|
142
|
-
return false;
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
setIsWithinRange(index);
|
|
146
|
-
}}
|
|
147
|
-
// distanceFilter={1}
|
|
148
|
-
// myLocationIcon={true}
|
|
149
|
-
myLocationEnabled={true}
|
|
150
|
-
initialCameraPosition={initialPosition || {
|
|
151
|
-
target: { latitude: 39.9, longitude: 116.4 },
|
|
152
|
-
zoom: 15
|
|
153
|
-
}}>
|
|
154
|
-
|
|
155
|
-
{clockInCoord &&
|
|
156
|
-
clockInCoord?.length > 0 &&
|
|
157
|
-
clockInCoord.map((item, index) => {
|
|
158
|
-
if (!item?.lat || !item?.lon) return null;
|
|
159
|
-
|
|
160
|
-
// ✅ 使用基于坐标的稳定 key,而不是 index
|
|
161
|
-
const stableKey = `${item.lat.toFixed(6)}-${item.lon.toFixed(6)}`;
|
|
162
|
-
|
|
163
|
-
// ✅ 同步计算 Marker 尺寸(无延迟)
|
|
164
|
-
const positionName = clockRule[clockRuleIndex]?.positionName || '';
|
|
165
|
-
const markerSize = calculateTextSize(positionName, 12);
|
|
166
|
-
|
|
167
|
-
return (
|
|
168
|
-
<React.Fragment key={stableKey}>
|
|
169
|
-
<Circle
|
|
170
|
-
center={{
|
|
171
|
-
latitude: item?.lat || 39.908692,
|
|
172
|
-
longitude: item?.lon || 116.397477,
|
|
173
|
-
}}
|
|
174
|
-
radius={clockRange}
|
|
175
|
-
zIndex={1000}
|
|
176
|
-
strokeWidth={2}
|
|
177
|
-
strokeColor={theme.colors.primary}
|
|
178
|
-
fillColor="rgba(43, 133, 255, 0.3)"
|
|
179
|
-
/>
|
|
180
|
-
<Marker
|
|
181
|
-
position={{
|
|
182
|
-
latitude: item?.lat || 39.908692,
|
|
183
|
-
longitude: item?.lon || 116.397477,
|
|
184
|
-
}}
|
|
185
|
-
customViewWidth={markerSize.width}
|
|
186
|
-
customViewHeight={markerSize.height}
|
|
187
|
-
>
|
|
188
|
-
<View style={styles.markerContainer}>
|
|
189
|
-
<Text style={styles.markerText}>
|
|
190
|
-
{positionName}
|
|
191
|
-
</Text>
|
|
192
|
-
</View>
|
|
193
|
-
</Marker>
|
|
194
|
-
</React.Fragment>
|
|
195
|
-
);
|
|
196
|
-
})}
|
|
197
|
-
|
|
198
|
-
</MapView>
|
|
199
|
-
<DebouncePressable
|
|
200
|
-
style={styles.orientationView}
|
|
201
|
-
onPress={() => {
|
|
202
|
-
moveToCurrentLocation();
|
|
203
|
-
}}
|
|
204
|
-
>
|
|
205
|
-
<Image source={ImageAsset.orientation} style={styles.orientation} />
|
|
206
|
-
</DebouncePressable>
|
|
207
|
-
</Animated.View>
|
|
208
|
-
);
|
|
209
|
-
}, [
|
|
210
|
-
data.location?.address,
|
|
211
|
-
mapViewRef,
|
|
212
|
-
mapState,
|
|
213
|
-
clockInCoord,
|
|
214
|
-
clockRange,
|
|
215
|
-
isLocationPermissions,
|
|
216
|
-
initialPosition,
|
|
217
|
-
clockRuleIndex
|
|
218
|
-
]);
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
//底部打卡按钮
|
|
223
|
-
const clockButton = useMemo(() => {
|
|
224
|
-
// 添加初始加载状态检查
|
|
225
|
-
if (!data.location?.address || mapState || clockInCoord.length === 0) {
|
|
226
|
-
return (
|
|
227
|
-
<Animated.View style={styles.buttonView} exiting={FadeIn.duration(300)}>
|
|
228
|
-
<View style={styles.buttonDisabled}>
|
|
229
|
-
<Text style={styles.buttonDisabledText}>
|
|
230
|
-
正在获取位置信息...
|
|
231
|
-
</Text>
|
|
232
|
-
</View>
|
|
233
|
-
</Animated.View>
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
if (clockType === 1000) {
|
|
238
|
-
return (
|
|
239
|
-
<Animated.View style={styles.buttonView} exiting={FadeIn.duration(300)}>
|
|
240
|
-
<View style={styles.buttonDisabled}>
|
|
241
|
-
<Text style={styles.buttonDisabledText}>
|
|
242
|
-
不在考勤规则内,无法打卡
|
|
243
|
-
</Text>
|
|
244
|
-
</View>
|
|
245
|
-
</Animated.View>
|
|
246
|
-
);
|
|
247
|
-
} else {
|
|
248
|
-
return (
|
|
249
|
-
<Animated.View style={styles.buttonView} exiting={FadeIn.duration(300)}>
|
|
250
|
-
<Button
|
|
251
|
-
label={
|
|
252
|
-
!isWithinRange
|
|
253
|
-
? isSupportOutWork ? clockType === 1001 ? '上班打卡(外勤)' : '下班打卡(外勤)' : "当前位置不在考勤范围无法打卡"
|
|
254
|
-
: clockType === 1001
|
|
255
|
-
? CommonConstants.clock_in
|
|
256
|
-
: CommonConstants.clock_out
|
|
257
|
-
}
|
|
258
|
-
onPress={ClockIn}
|
|
259
|
-
style={[styles.button]}
|
|
260
|
-
labelStyle={[styles.buttonLabel]}
|
|
261
|
-
/>
|
|
262
|
-
</Animated.View>
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
}, [data.location?.address, mapState, clockType, isWithinRange, clockInCoord, photo, isSupportOutWork]);
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
// 使用 useEffect 替代 useFocusEffect 来避免潜在的 Hook 顺序问题
|
|
269
|
-
useEffect(() => {
|
|
270
|
-
// 设置初始化状态
|
|
271
|
-
setIsInitializing(true);
|
|
272
|
-
//@ts-ignore
|
|
273
|
-
// setPhoto(undefined);
|
|
274
|
-
|
|
275
|
-
// 使用 InteractionManager 确保页面转场动画完成后再执行耗时操作
|
|
276
|
-
InteractionManager.runAfterInteractions(() => {
|
|
277
|
-
// 延迟获取考勤规则,让页面先渲染出来
|
|
278
|
-
timers.current = setTimeout(() => {
|
|
279
|
-
try {
|
|
280
|
-
getClockInRule().catch(err => {
|
|
281
|
-
console.error('获取考勤规则失败:', err);
|
|
282
|
-
}).finally(() => {
|
|
283
|
-
setIsInitializing(false);
|
|
284
|
-
});
|
|
285
|
-
} catch (error) {
|
|
286
|
-
console.error('获取考勤规则出错:', error);
|
|
287
|
-
setIsInitializing(false);
|
|
288
|
-
}
|
|
289
|
-
}, 1000);
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
// 添加安全机制:无论如何,2秒后强制结束加载状态
|
|
293
|
-
const timer = setTimeout(() => {
|
|
294
|
-
setIsInitializing(false);
|
|
295
|
-
}, 2000);
|
|
296
|
-
|
|
297
|
-
return () => {
|
|
298
|
-
clearTimeout(timer);
|
|
299
|
-
clearTimeout(timers.current);
|
|
300
|
-
setPhoto({} as Photo)
|
|
301
|
-
};
|
|
302
|
-
}, []);
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return (
|
|
308
|
-
<Animated.View style={styles.container} exiting={FadeIn.duration(300)}>
|
|
309
|
-
{/* ✅ 加载状态:等待 initialPosition */}
|
|
310
|
-
{!initialPosition ? (
|
|
311
|
-
<View style={[StyleSheet.absoluteFill, styles.mapLoad]}>
|
|
312
|
-
<ActivityIndicator size="large" color={theme.colors.primary} />
|
|
313
|
-
<Text style={styles.loadingText}>正在初始化地图...</Text>
|
|
314
|
-
</View>
|
|
315
|
-
) : (
|
|
316
|
-
<>
|
|
317
|
-
{mapView}
|
|
318
|
-
</>
|
|
319
|
-
)}
|
|
320
|
-
<View style={styles.mapView}>
|
|
321
|
-
<View style={styles.topView}>
|
|
322
|
-
<DebouncePressable
|
|
323
|
-
style={[styles.topLeftItem]}
|
|
324
|
-
onPress={() => {
|
|
325
|
-
chooseClockRule();
|
|
326
|
-
}}
|
|
327
|
-
>
|
|
328
|
-
<Text style={styles.topLeftText} numberOfLines={1}>
|
|
329
|
-
{clockRule[clockRuleIndex]?.ruleName ?? "请选择"}
|
|
330
|
-
</Text>
|
|
331
|
-
<FontAwesome
|
|
332
|
-
name="angle-down"
|
|
333
|
-
size={18}
|
|
334
|
-
color={theme.colors.text_placeholder}
|
|
335
|
-
/>
|
|
336
|
-
</DebouncePressable>
|
|
337
|
-
<DebouncePressable
|
|
338
|
-
style={[styles.topLeftItem]}
|
|
339
|
-
onPress={() => {
|
|
340
|
-
chooseShift();
|
|
341
|
-
}}
|
|
342
|
-
>
|
|
343
|
-
<Text style={styles.topLeftText}>
|
|
344
|
-
{shifts[shiftIndex] ?? "请选择"}
|
|
345
|
-
</Text>
|
|
346
|
-
<FontAwesome
|
|
347
|
-
name="angle-down"
|
|
348
|
-
size={18}
|
|
349
|
-
color={theme.colors.text_placeholder}
|
|
350
|
-
/>
|
|
351
|
-
</DebouncePressable>
|
|
352
|
-
</View>
|
|
353
|
-
<View>
|
|
354
|
-
<View style={styles.cameraView}>
|
|
355
|
-
<DebouncePressable onPress={takePhoto} //disabled={!isWithinRange}
|
|
356
|
-
>
|
|
357
|
-
<Image
|
|
358
|
-
source={
|
|
359
|
-
photo && isNotEmpty(photo?.content)
|
|
360
|
-
? { uri: photo.content }
|
|
361
|
-
: ImageAsset.camera
|
|
362
|
-
}
|
|
363
|
-
style={styles.cameraIcon}
|
|
364
|
-
/>
|
|
365
|
-
<Text style={styles.cameraText}>
|
|
366
|
-
{CommonConstants.take_photo_upload}
|
|
367
|
-
</Text>
|
|
368
|
-
</DebouncePressable>
|
|
369
|
-
</View>
|
|
370
|
-
<View style={styles.locationView}>
|
|
371
|
-
<Image source={ImageAsset.coordinate} style={styles.locationIcon} />
|
|
372
|
-
<Text style={styles.address}>{data.location?.address}</Text>
|
|
373
|
-
</View>
|
|
374
|
-
</View>
|
|
375
|
-
</View>
|
|
376
|
-
{initialPosition && clockButton}
|
|
377
|
-
</Animated.View>
|
|
378
|
-
)
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
export default React.memo(ClockMapView)
|
|
382
|
-
|
|
383
|
-
const styleSheet = createStyleSheet((theme, tr) => ({
|
|
384
|
-
container: {
|
|
385
|
-
flex: 1,
|
|
386
|
-
backgroundColor: theme.colors.background,
|
|
387
|
-
},
|
|
388
|
-
mapView: {
|
|
389
|
-
flex: 1,
|
|
390
|
-
width: "100%",
|
|
391
|
-
height: "50%",
|
|
392
|
-
backgroundColor: theme.colors.card,
|
|
393
|
-
},
|
|
394
|
-
mapLoad: {
|
|
395
|
-
position: "absolute",
|
|
396
|
-
width: "100%",
|
|
397
|
-
height: "100%",
|
|
398
|
-
justifyContent: "center",
|
|
399
|
-
alignItems: "center",
|
|
400
|
-
zIndex: 99,
|
|
401
|
-
backgroundColor: theme.colors.background,
|
|
402
|
-
},
|
|
403
|
-
address: {
|
|
404
|
-
fontSize: 14,
|
|
405
|
-
color: theme.colors.timer,
|
|
406
|
-
},
|
|
407
|
-
orientationView: {
|
|
408
|
-
position: "absolute",
|
|
409
|
-
right: 5,
|
|
410
|
-
bottom: 0,
|
|
411
|
-
zIndex: 10,
|
|
412
|
-
width: 50,
|
|
413
|
-
height: 50,
|
|
414
|
-
},
|
|
415
|
-
orientation: {
|
|
416
|
-
width: 50,
|
|
417
|
-
height: 50,
|
|
418
|
-
},
|
|
419
|
-
locationView: {
|
|
420
|
-
flexDirection: "row",
|
|
421
|
-
alignItems: "center",
|
|
422
|
-
paddingVertical: 12,
|
|
423
|
-
gap: 5,
|
|
424
|
-
paddingHorizontal: 12,
|
|
425
|
-
},
|
|
426
|
-
locationIcon: {
|
|
427
|
-
width: 10,
|
|
428
|
-
height: 12,
|
|
429
|
-
},
|
|
430
|
-
cameraIcon: {
|
|
431
|
-
width: 90,
|
|
432
|
-
height: 90,
|
|
433
|
-
marginBottom: 5,
|
|
434
|
-
borderRadius: 5,
|
|
435
|
-
},
|
|
436
|
-
cameraText: {
|
|
437
|
-
fontSize: 14,
|
|
438
|
-
color: theme.colors.text,
|
|
439
|
-
fontWeight: "600",
|
|
440
|
-
alignSelf: "center",
|
|
441
|
-
},
|
|
442
|
-
cameraView: {
|
|
443
|
-
justifyContent: "center",
|
|
444
|
-
alignItems: "center",
|
|
445
|
-
},
|
|
446
|
-
buttonView: {
|
|
447
|
-
flexDirection: "row",
|
|
448
|
-
justifyContent: "center",
|
|
449
|
-
alignItems: "center",
|
|
450
|
-
position: "absolute",
|
|
451
|
-
bottom: 20,
|
|
452
|
-
left: 0,
|
|
453
|
-
right: 0,
|
|
454
|
-
paddingHorizontal: 12,
|
|
455
|
-
backgroundColor: theme.colors.card,
|
|
456
|
-
},
|
|
457
|
-
button: {
|
|
458
|
-
height: 44,
|
|
459
|
-
width: "88%",
|
|
460
|
-
},
|
|
461
|
-
buttonLabel: {
|
|
462
|
-
fontSize: 14,
|
|
463
|
-
color: theme.colors.white,
|
|
464
|
-
},
|
|
465
|
-
buttonDisabled: {
|
|
466
|
-
backgroundColor: "#EFEFEF",
|
|
467
|
-
height: 44,
|
|
468
|
-
width: "88%",
|
|
469
|
-
justifyContent: "center",
|
|
470
|
-
alignItems: "center",
|
|
471
|
-
borderRadius: 44,
|
|
472
|
-
gap: 10,
|
|
473
|
-
flexDirection: "row",
|
|
474
|
-
},
|
|
475
|
-
buttonDisabledText: {
|
|
476
|
-
fontSize: 14,
|
|
477
|
-
color: theme.colors.text_placeholder,
|
|
478
|
-
},
|
|
479
|
-
topView: {
|
|
480
|
-
flexDirection: "row",
|
|
481
|
-
padding: 5,
|
|
482
|
-
gap: 5,
|
|
483
|
-
marginBottom: 20,
|
|
484
|
-
},
|
|
485
|
-
topLeftItem: {
|
|
486
|
-
flexDirection: "row",
|
|
487
|
-
alignItems: "center",
|
|
488
|
-
justifyContent: "space-between",
|
|
489
|
-
borderWidth: 1,
|
|
490
|
-
borderColor: theme.colors.primary,
|
|
491
|
-
borderRadius: 5,
|
|
492
|
-
paddingVertical: 5,
|
|
493
|
-
backgroundColor: theme.colors.primary_light,
|
|
494
|
-
flex: 1,
|
|
495
|
-
paddingHorizontal: 10,
|
|
496
|
-
},
|
|
497
|
-
topLeftText: {
|
|
498
|
-
fontSize: 12,
|
|
499
|
-
color: theme.colors.primary,
|
|
500
|
-
fontWeight: "600",
|
|
501
|
-
marginRight: 30,
|
|
502
|
-
},
|
|
503
|
-
markerText: {
|
|
504
|
-
fontSize: 12,
|
|
505
|
-
color: theme.colors.text,
|
|
506
|
-
fontWeight: "600",
|
|
507
|
-
|
|
508
|
-
},
|
|
509
|
-
markerContainer: {
|
|
510
|
-
backgroundColor: theme.colors.white,
|
|
511
|
-
borderRadius: 5,
|
|
512
|
-
padding: 5,
|
|
513
|
-
alignItems: "center",
|
|
514
|
-
borderWidth: 1,
|
|
515
|
-
borderColor: "#ddd",
|
|
516
|
-
paddingVertical:5,
|
|
517
|
-
|
|
518
|
-
},
|
|
519
|
-
loadingContainer: {
|
|
520
|
-
flex: 1,
|
|
521
|
-
justifyContent: 'center',
|
|
522
|
-
alignItems: 'center',
|
|
523
|
-
backgroundColor: theme.colors.background,
|
|
524
|
-
flexDirection: 'row',
|
|
525
|
-
gap: 10,
|
|
526
|
-
},
|
|
527
|
-
loadingText: {
|
|
528
|
-
marginTop: 10,
|
|
529
|
-
fontSize: 14,
|
|
530
|
-
color: theme.colors.text_placeholder,
|
|
531
|
-
},
|
|
532
|
-
}));
|