leon 1 سال پیش
والد
کامیت
039e188d68
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 0 0
      ios/main.jsbundle
  2. 5 3
      src/pages/map/map.tsx

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
ios/main.jsbundle


+ 5 - 3
src/pages/map/map.tsx

@@ -9,7 +9,7 @@ import { TimeFormatter } from "@/utils/time_format";
 import { systemLocation } from "@/services/common";
 
 // let LeafletView = require('react-native-leaflet-maps').LeafletView
-let location:any = null
+let location: any = null
 export default function map() {
     // const [location, setLocation] = useState<any>(null)
     const navigation = useNavigation()
@@ -117,10 +117,12 @@ export default function map() {
             mapCenterPosition={centerPosition()}
             mapMarkers={mapMarkers()}
             onMessageReceived={e => {
+                if (e.payload && e.payload.mapCenterPosition)
+                    console.log((e as any).payload.mapCenterPosition)
                 // console.log(e)
                 // setCount(count => count + 1)
-                // if (e.payload && e.payload.mapCenterPosition)
-                //     location = e.payload.mapCenterPosition
+                if (e.payload && e.payload.mapCenterPosition)
+                    location = e.payload.mapCenterPosition
                 // if (e.event && e.event == 'onMoveEnd') {
                 //     if (e.payload && e.payload.mapCenterPosition)
                 //         setLocation(e.payload.mapCenterPosition)

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است