Selaa lähdekoodia

android offline maps fix

Viktoriia 3 viikkoa sitten
vanhempi
commit
38c907cd46
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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();