Ver código fonte

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

TMomemt 5 anos atrás
pai
commit
7a91221926
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      ios/RNCWKWebView.m

+ 1
- 1
ios/RNCWKWebView.m Ver arquivo

@@ -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)