sunzhongliang 4 anos atrás
pai
commit
f28938cfbb
Nenhuma conta vinculada ao e-mail do autor do commit
2 arquivos alterados com 11 adições e 1 exclusões
  1. 1
    1
      ios/RNCWebView.m
  2. 10
    0
      ios/RNCWebViewManager.m

+ 1
- 1
ios/RNCWebView.m Ver arquivo

@@ -1076,7 +1076,7 @@ static NSDictionary* customCertificatesForHost;
1076 1076
         _onHttpError(event);
1077 1077
       }
1078 1078
     }
1079
-  }  
1079
+  }
1080 1080
 
1081 1081
   decisionHandler(WKNavigationResponsePolicyAllow);
1082 1082
 }

+ 10
- 0
ios/RNCWebViewManager.m Ver arquivo

@@ -217,4 +217,14 @@ RCT_EXPORT_METHOD(startLoadWithResult:(BOOL)result lockIdentifier:(NSInteger)loc
217 217
   }
218 218
 }
219 219
 
220
+- (dispatch_queue_t)methodQueue
221
+{
222
+    return dispatch_get_main_queue();
223
+}
224
+
225
++ (BOOL)requiresMainQueueSetup
226
+{
227
+    return YES;
228
+}
229
+
220 230
 @end