diff options
-rw-r--r-- | app/(tabs)/index.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 6f196ea..734fa5e 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -463,6 +463,10 @@ export default function HomeScreen() { try { const { status } = await Location.requestForegroundPermissionsAsync(); if (status === "granted") { + Location.getCurrentPositionAsync({}).then(location => { + updateLocation(location.coords, location.coords.speed); + }); + Location.watchPositionAsync( { accuracy: Location.Accuracy.Balanced, |