diff --git a/React/Views/RCTWebView.m b/React/Views/RCTWebView.m index cddd9ede1..d0e133333 100644 --- a/React/Views/RCTWebView.m +++ b/React/Views/RCTWebView.m @@ -80,6 +80,9 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder) NSString *html = [RCTConvert NSString:source[@"html"]]; if (html) { NSURL *baseURL = [RCTConvert NSURL:source[@"baseUrl"]]; + if (!baseURL) { + baseURL = [NSURL URLWithString:@"about:blank"]; + } [_webView loadHTMLString:html baseURL:baseURL]; return; }