Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,17 @@ - (void)setStackPresentation:(RNSScreenStackPresentation)stackPresentation
}
#else
_controller.modalPresentationStyle = UIModalPresentationFullScreen;
#endif
#if !TARGET_OS_TV
if (@available(iOS 18.0, *)) {
UISheetPresentationController *sheetController = _controller.sheetPresentationController;
if (sheetController != nil) {
sheetController.prefersPageSizing = true;
} else {
RCTLogError(
@"[RNScreens] sheetPresentationController is null when attempting to set prefersPageSizing for modal");
}
}
#endif
break;
case RNSScreenStackPresentationFullScreenModal:
Expand Down
Loading