Skip to content

Commit

Permalink
fix EXC_BAD_ACCESS error by removing WKWebView reference to RNCWebView
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldchen committed May 7, 2022
1 parent 03d597c commit 3a8d9c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apple/RNCWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ - (void)removeFromSuperview
if (_webViewKey != nil) {
NSMutableDictionary *sharedRNCWebViewDictionary = [[RNCWebViewMapManager sharedManager] sharedRNCWebViewDictionary];
sharedRNCWebViewDictionary[_webViewKey] = nil;
[self removeWKWebViewFromSuperView:self];
}

[super removeFromSuperview];
Expand Down

0 comments on commit 3a8d9c7

Please sign in to comment.