From 7a91221926afbc57ff35c5c9fb64f2f2e4b97534 Mon Sep 17 00:00:00 2001 From: TMomemt <42024947+TMomemt@users.noreply.github.com> Date: Tue, 23 Apr 2019 17:16:04 +0800 Subject: [PATCH] fix(WKWebView): iOS crash when WebView's title is nil (#521) --- ios/RNCWKWebView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNCWKWebView.m b/ios/RNCWKWebView.m index 2e5ad05..a1fa7d8 100644 --- a/ios/RNCWKWebView.m +++ b/ios/RNCWKWebView.m @@ -460,7 +460,7 @@ static NSURLCredential* clientAuthenticationCredential; { NSDictionary *event = @{ @"url": _webView.URL.absoluteString ?: @"", - @"title": _webView.title, + @"title": _webView.title ?: @"", @"loading" : @(_webView.loading), @"canGoBack": @(_webView.canGoBack), @"canGoForward" : @(_webView.canGoForward)