We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789c27e commit 43d0090Copy full SHA for 43d0090
ios/RNSScreenStack.mm
@@ -1175,7 +1175,11 @@ - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childCompo
1175
1176
- (void)takeSnapshot
1177
{
1178
- _snapshot = [_controller.visibleViewController.view snapshotViewAfterScreenUpdates:NO];
+ if (_presentedModals.count < 2) {
1179
+ _snapshot = [_controller.visibleViewController.view snapshotViewAfterScreenUpdates:NO];
1180
+ } else {
1181
+ _snapshot = [[_presentedModals.lastObject view] snapshotViewAfterScreenUpdates:NO];
1182
+ }
1183
}
1184
1185
- (void)mountingTransactionWillMount:(react::MountingTransaction const &)transaction
0 commit comments