Ver código fonte

Update RNCWKWebView.m

phonezawphyo 6 anos atrás
pai
commit
02521f542c
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      ios/RNCWKWebView.m

+ 2
- 0
ios/RNCWKWebView.m Ver arquivo

95
     [self addSubview:_webView];
95
     [self addSubview:_webView];
96
 
96
 
97
     [self visitSource];
97
     [self visitSource];
98
+  } else {
99
+    [_webView.configuration.userContentController removeScriptMessageHandlerForName:MessageHanderName];
98
   }
100
   }
99
 }
101
 }
100
 
102