mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-23 09:18:38 +00:00
feat(WKWebView): Fix recreate bug when moving to window (#84)
* Fixes #81 * Fixes #72
This commit is contained in:
parent
72f39885c0
commit
3c4f78df2e
@ -79,7 +79,7 @@ static NSString *const MessageHanderName = @"ReactNative";
|
||||
|
||||
- (void)didMoveToWindow
|
||||
{
|
||||
if (self.window != nil) {
|
||||
if (self.window != nil && _webView == nil) {
|
||||
if (![[self class] dynamicallyLoadWebKitIfAvailable]) {
|
||||
return;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user