Skip to content

Commit

Permalink
fix: hard detach
Browse files Browse the repository at this point in the history
This change aligns more with the current behaviour
  • Loading branch information
hirbod authored and kkafar committed Sep 26, 2024
1 parent c9e31d8 commit 8a02388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNSScreenStack.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ - (void)invalidate {

- (void)dismissAllPresentedViewControllersFrom:(UIViewController *)viewController completion:(void (^)(void))completion {
if (viewController.presentedViewController) {
[viewController.presentedViewController dismissViewControllerAnimated:NO completion:^{
[viewController.presentedViewController dismissViewControllerAnimated:YES completion:^{
[self dismissAllPresentedViewControllersFrom:viewController completion:completion];
}];
} else {
Expand Down

0 comments on commit 8a02388

Please sign in to comment.