Skip to content

Commit

Permalink
💫 Update: `RNIModalSheetViewDelegate.discardCurrentModalControllerIfN…
Browse files Browse the repository at this point in the history
…eeded`
  • Loading branch information
dominicstop committed Oct 2, 2024
1 parent 470bf13 commit 77545dc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ios/RNIModalSheetView/RNIModalSheetViewDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ extension RNIModalSheetViewDelegate: RNIContentViewDelegate {
fallbackValue: true
);

modalSheetController.dismiss(animated: isAnimated) {
self.discardCurrentModalControllerIfNeeded();
};

modalSheetController.dismiss(animated: isAnimated);
resolveBlock([:]);

case "getModalMetrics":
Expand Down Expand Up @@ -369,6 +366,8 @@ extension RNIModalSheetViewDelegate: ModalViewControllerEventsNotifiable {
"isAnimated": isAnimated,
]
);

self.discardCurrentModalControllerIfNeeded();
};
};

Expand Down

0 comments on commit 77545dc

Please sign in to comment.