浏览代码

fix(WKWebView): iOS crash when WebView's title is nil (#521)

TMomemt 5 年前
父节点
当前提交
7a91221926
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      ios/RNCWKWebView.m

+ 1
- 1
ios/RNCWKWebView.m 查看文件

@@ -460,7 +460,7 @@ static NSURLCredential* clientAuthenticationCredential;
460 460
 {
461 461
   NSDictionary *event = @{
462 462
     @"url": _webView.URL.absoluteString ?: @"",
463
-    @"title": _webView.title,
463
+    @"title": _webView.title ?: @"",
464 464
     @"loading" : @(_webView.loading),
465 465
     @"canGoBack": @(_webView.canGoBack),
466 466
     @"canGoForward" : @(_webView.canGoForward)