Skip to content

Commit

Permalink
fix iOS 16 condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alduzy committed Oct 2, 2024
1 parent 239bb3d commit fd821d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,8 @@ - (void)updateFormSheetPresentationStyle
sheet.delegate = self;
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_16_0) && \
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_16_0
if (_sheetAllowedDetents.count > 0) {
if (@available(iOS 16.0, *)) {
if (@available(iOS 16.0, *)) {
if (_sheetAllowedDetents.count > 0) {
if (_sheetAllowedDetents.count == 1 && [_sheetAllowedDetents[0] integerValue] == SHEET_FIT_TO_CONTENTS) {
// This is `fitToContents` case, where sheet should be just high to display its contents.
// Paper: we do not set anything here, we will set once React computed layout of our React's children, namely
Expand Down

0 comments on commit fd821d1

Please sign in to comment.