소스 검색

android offline maps fix

Viktoriia 3 주 전
부모
커밋
38c907cd46
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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();