File tree Expand file tree Collapse file tree
ios/gamma/modals/form-sheet Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#import " RNSFormSheetHostComponentView.h"
2+ #import " RNSDefines.h"
23#import " RNSFormSheetHostComponentEventEmitter.h"
34#import " RNSFormSheetHostController.h"
45#import " RNSFormSheetHostShadowStateProxy.h"
@@ -265,6 +266,7 @@ - (void)updateConfiguration
265266 NSMutableArray <UISheetPresentationControllerDetent *> *nativeDetents =
266267 [[NSMutableArray alloc ] initWithCapacity: capacity];
267268
269+ #if RNS_IPHONE_OS_VERSION_AVAILABLE(16_0)
268270 if (@available (iOS 16.0 , *)) {
269271 if (detentsCount == 0 ) {
270272 [nativeDetents addObject: [UISheetPresentationControllerDetent largeDetent ]];
@@ -282,7 +284,9 @@ - (void)updateConfiguration
282284 }]];
283285 }
284286 }
285- } else {
287+ } else
288+ #endif // RNS_IPHONE_OS_VERSION_AVAILABLE(16_0)
289+ {
286290 // iOS 15 Legacy Fallback
287291 if (detentsCount == 1 ) {
288292 double firstDetentFraction = _detents[0 ];
You can’t perform that action at this time.
0 commit comments