diff --git a/ios/RNSFullWindowOverlay.mm b/ios/RNSFullWindowOverlay.mm index f91ad1363f..f40d36ca26 100644 --- a/ios/RNSFullWindowOverlay.mm +++ b/ios/RNSFullWindowOverlay.mm @@ -120,6 +120,12 @@ - (void)didMoveToWindow facebook::react::RNSFullWindowOverlayComponentDescriptor>(); } +- (void)prepareForRecycle +{ + [_container removeFromSuperview]; + _container = nil; +} + #else #pragma mark - Paper specific