mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 19:51:10 +00:00
fix(iOS): inconsistent backgroundColor (#868)
* fix inconsistent backgroundColor * remove redundant setBackgroundColor
This commit is contained in:
committed by
Thibault Malbranche
parent
48ba8d3a9e
commit
d25b20ac03
+1
-4
@@ -222,6 +222,7 @@ static NSURLCredential* clientAuthenticationCredential;
|
||||
}
|
||||
|
||||
_webView = [[WKWebView alloc] initWithFrame:self.bounds configuration: wkWebViewConfig];
|
||||
[self setBackgroundColor: _savedBackgroundColor];
|
||||
_webView.scrollView.delegate = self;
|
||||
_webView.UIDelegate = self;
|
||||
_webView.navigationDelegate = self;
|
||||
@@ -838,8 +839,6 @@ static NSURLCredential* clientAuthenticationCredential;
|
||||
}];
|
||||
_onLoadingError(event);
|
||||
}
|
||||
|
||||
[self setBackgroundColor: _savedBackgroundColor];
|
||||
}
|
||||
|
||||
- (void)evaluateJS:(NSString *)js
|
||||
@@ -874,8 +873,6 @@ static NSURLCredential* clientAuthenticationCredential;
|
||||
} else if (_onLoadingFinish) {
|
||||
_onLoadingFinish([self baseEvent]);
|
||||
}
|
||||
|
||||
[self setBackgroundColor: _savedBackgroundColor];
|
||||
}
|
||||
|
||||
- (void)injectJavaScript:(NSString *)script
|
||||
|
||||
Reference in New Issue
Block a user