Ver código fonte

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

* Fixes #81 
* Fixes #72
Neil 7 anos atrás
pai
commit
3c4f78df2e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      ios/RNCWKWebView.m

+ 1
- 1
ios/RNCWKWebView.m Ver arquivo

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