Ver código fonte

feat: remove scriptMessageHandlerForName method

sunzhongliang 5 anos atrás
pai
commit
06260b0e5e
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0
    1
      ios/RNCWebView.m

+ 0
- 1
ios/RNCWebView.m Ver arquivo

288
 - (void)removeFromSuperview
288
 - (void)removeFromSuperview
289
 {
289
 {
290
     if (_webView) {
290
     if (_webView) {
291
-        [_webView.configuration.userContentController removeScriptMessageHandlerForName:MessageHandlerName];
292
         [_webView removeObserver:self forKeyPath:@"estimatedProgress"];
291
         [_webView removeObserver:self forKeyPath:@"estimatedProgress"];
293
         [_webView removeFromSuperview];
292
         [_webView removeFromSuperview];
294
 #if !TARGET_OS_OSX
293
 #if !TARGET_OS_OSX