Waseel: driver app, dispatch, POI suggestions, map fixes

This commit is contained in:
Krikorios
2026-08-25 02:57:49 +03:00
parent 899ca93cd5
commit 1d84003e0a
50 changed files with 3625 additions and 625 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
import * as Location from "expo-location";
import { useCallback, useEffect, useState } from "react";
import { tr } from "@/lib/i18n";
import { useLocationStore } from "@/store";
export type LocationStatus =
@@ -51,7 +52,11 @@ export const useUserLocation = () => {
const apply = ({ coords }: Location.LocationObject) => {
const { latitude, longitude } = coords;
setUserLocation({ latitude, longitude, address: "Your location" });
setUserLocation({
latitude,
longitude,
address: tr("common.yourLocation"),
});
Location.reverseGeocodeAsync({ latitude, longitude })
.then(([place]) => {