|
@@ -254,7 +254,9 @@ const MapScreen: React.FC<MapScreenProps> = ({ navigation }) => {
|
|
};
|
|
};
|
|
|
|
|
|
const getLocation = async () => {
|
|
const getLocation = async () => {
|
|
- let currentLocation = await Location.getCurrentPositionAsync();
|
|
|
|
|
|
+ let currentLocation = await Location.getCurrentPositionAsync(
|
|
|
|
+ Platform.OS === 'ios' ? { accuracy: Location.Accuracy.Balanced } : {}
|
|
|
|
+ );
|
|
setLocation(currentLocation.coords);
|
|
setLocation(currentLocation.coords);
|
|
|
|
|
|
mapRef.current?.animateToRegion(
|
|
mapRef.current?.animateToRegion(
|