mirror of
https://github.com/expo/react-native-webview.git
synced 2026-11-15 09:18:06 -10:00
fix(iOS WKWebView): fixed local html files loading on real devices (#403)
This commit is contained in:
1 parent
8deacdbbe8
commit
9c9b7d721a
1 file changed
+7
-1
+7
-1
@@ -294,7 +294,13 @@ static NSURLCredential* clientAuthenticationCredential;
|
||||
[_webView loadHTMLString:@"" baseURL:nil];
|
||||
return;
|
||||
}
|
||||
[_webView loadRequest:request];
|
||||
if (request.URL.host) {
|
||||
[_webView loadRequest:request];
|
||||
}
|
||||
else {
|
||||
[_webView loadFileURL:request.URL allowingReadAccessToURL:request.URL];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-(void)setHideKeyboardAccessoryView:(BOOL)hideKeyboardAccessoryView
|
||||
|
||||
Reference in new issue
Block a user