summaryrefslogtreecommitdiff
path: root/app/(tabs)/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/(tabs)/index.tsx')
-rw-r--r--app/(tabs)/index.tsx4
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,