Skip to content

Commit

Permalink
chore: add prepareForRecycle method
Browse files Browse the repository at this point in the history
However more extensive logic may be required for Fabric as it seems to
me, that _container wont be initialized for the second time
  • Loading branch information
kkafar committed Jun 29, 2022
1 parent 65ba965 commit 1c5c4d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ios/RNSFullWindowOverlay.mm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ - (void)didMoveToWindow
facebook::react::RNSFullWindowOverlayComponentDescriptor>();
}

- (void)prepareForRecycle
{
[_container removeFromSuperview];
_container = nil;

[super prepareForRecycle];
}

#else
#pragma mark - Paper specific

Expand Down

0 comments on commit 1c5c4d9

Please sign in to comment.