ソースを参照

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)