|
@@ -1,5 +1,5 @@
|
|
|
import React, { useRef } from 'react';
|
|
|
-import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
|
+import { View, TouchableOpacity, StyleSheet, Platform } from 'react-native';
|
|
|
import * as MapLibreRN from '@maplibre/maplibre-react-native';
|
|
|
import { useNavigation } from '@react-navigation/native';
|
|
|
import { Colors } from 'src/theme';
|
|
@@ -39,10 +39,12 @@ const MessageLocation = ({
|
|
|
zoomEnabled={false}
|
|
|
pitchEnabled={false}
|
|
|
>
|
|
|
- <MapLibreRN.Camera
|
|
|
- ref={cameraRef}
|
|
|
- defaultSettings={{ centerCoordinate: [lng, lat], zoomLevel: 10 }}
|
|
|
- />
|
|
|
+ {Platform.OS === 'ios' && (
|
|
|
+ <MapLibreRN.Camera
|
|
|
+ ref={cameraRef}
|
|
|
+ defaultSettings={{ centerCoordinate: [lng, lat], zoomLevel: 10 }}
|
|
|
+ />
|
|
|
+ )}
|
|
|
<MapLibreRN.MarkerView coordinate={[lng, lat]}>
|
|
|
<View
|
|
|
style={{
|