|
@@ -1,5 +1,5 @@
|
|
import React, { useEffect, useRef, useState } from 'react';
|
|
import React, { useEffect, useRef, useState } from 'react';
|
|
-import { StyleSheet, View } from 'react-native';
|
|
|
|
|
|
+import { StyleSheet, View, Platform } from 'react-native';
|
|
import * as Location from 'expo-location';
|
|
import * as Location from 'expo-location';
|
|
import * as MapLibreRN from '@maplibre/maplibre-react-native';
|
|
import * as MapLibreRN from '@maplibre/maplibre-react-native';
|
|
import { SheetManager, useSheetRouteParams, useSheetRouter } from 'react-native-actions-sheet';
|
|
import { SheetManager, useSheetRouteParams, useSheetRouter } from 'react-native-actions-sheet';
|
|
@@ -114,7 +114,7 @@ const RouteB = () => {
|
|
attributionEnabled={false}
|
|
attributionEnabled={false}
|
|
onRegionDidChange={handleRegionChange}
|
|
onRegionDidChange={handleRegionChange}
|
|
>
|
|
>
|
|
- <MapLibreRN.Camera ref={cameraRef} />
|
|
|
|
|
|
+ {Platform.OS === 'ios' && <MapLibreRN.Camera ref={cameraRef} />}
|
|
{currentLocation && (
|
|
{currentLocation && (
|
|
<MapLibreRN.PointAnnotation
|
|
<MapLibreRN.PointAnnotation
|
|
id="currentLocation"
|
|
id="currentLocation"
|