From 4cc145ca098976c21e654e7ebe72c5f3602af30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Mon, 1 Jul 2024 20:22:21 +0400 Subject: [PATCH] Fix geolocation getter and map being broken --- src/utils/index.ts | 2 +- src/windows/TransactionDetails.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 0bec340fc..43387c75c 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -108,7 +108,7 @@ export const toast = ( export const getGeolocation = (): Promise => { return new Promise((resolve, reject) => { - Geolocation.getCurrentPosition( + Geolocation.default.getCurrentPosition( (position) => { resolve(position.coords); }, diff --git a/src/windows/TransactionDetails.tsx b/src/windows/TransactionDetails.tsx index 92118cfb8..73a1c7c13 100644 --- a/src/windows/TransactionDetails.tsx +++ b/src/windows/TransactionDetails.tsx @@ -11,7 +11,7 @@ import DialogAndroid from "react-native-dialogs"; import Clipboard from "@react-native-clipboard/clipboard"; import { Card, Text, CardItem, H1, View, Button, Icon } from "native-base"; import { fromUnixTime } from "date-fns"; -import MapView, { PROVIDER_DEFAULT } from "react-native-maps"; +import MapView, { PROVIDER_DEFAULT, Marker } from "react-native-maps"; import type Long from "long"; import Blurmodal from "../components/BlurModal"; @@ -406,7 +406,7 @@ export default function TransactionDetails({ route, navigation }: ITransactionDe }} customMapStyle={MapStyle[transactionGeolocationMapStyle]} > -