Browse Source

android offline maps fix

Viktoriia 3 tuần trước cách đây
mục cha
commit
38c907cd46
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/screens/InAppScreens/MapScreen/index.tsx

+ 6 - 0
src/screens/InAppScreens/MapScreen/index.tsx

@@ -602,6 +602,12 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
     }
   }, [netInfo]);
 
+  useEffect(() => {
+    if (Platform.OS === 'android') {
+      MapLibreRN.setConnected(isConnected);
+    }
+  }, [isConnected])
+
   useEffect(() => {
     if (showNomads) {
       refetchUsersLocation();