Browse Source

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

* Fixes #81 
* Fixes #72
Neil 6 years ago
parent
commit
3c4f78df2e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/RNCWKWebView.m

+ 1
- 1
ios/RNCWKWebView.m View File

79
 
79
 
80
 - (void)didMoveToWindow
80
 - (void)didMoveToWindow
81
 {
81
 {
82
-  if (self.window != nil) {
82
+  if (self.window != nil && _webView == nil) {
83
     if (![[self class] dynamicallyLoadWebKitIfAvailable]) {
83
     if (![[self class] dynamicallyLoadWebKitIfAvailable]) {
84
       return;
84
       return;
85
     };
85
     };