feat(WKWebView): Fix recreate bug when moving to window (#84)

* Fixes #81 
* Fixes #72
This commit is contained in:
Neil 2018-10-18 14:34:00 +08:00 committed by Thibault Malbranche
parent 72f39885c0
commit 3c4f78df2e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
};