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 7ab9905
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/RNSFullWindowOverlay.mm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ - (void)didMoveToWindow
facebook::react::RNSFullWindowOverlayComponentDescriptor>();
}

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

#else
#pragma mark - Paper specific

Expand Down

0 comments on commit 7ab9905

Please sign in to comment.