Skip to content

Commit

Permalink
Remove RNS Array utility
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Nov 14, 2023
1 parent 77b9e26 commit 9a8eb64
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
5 changes: 2 additions & 3 deletions ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#import <React/RCTShadowView.h>
#import <React/RCTUIManager.h>
#import "NSArray+RNSUtil.h"
#import "RNSScreenStack.h"
#import "RNSScreenStackHeaderConfig.h"

Expand Down Expand Up @@ -616,7 +615,7 @@ - (void)updateFormSheetPresentationStyle
if (_stackPresentation == RNSScreenStackPresentationFormSheet && sheet != nil) {
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_16_0) && \
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_16_0
if ([_sheetCustomDetents rns_isNotEmpty]) {
if (_sheetCustomDetents.count > 0) {
if (@available(iOS 16.0, *)) {
sheet.detents = [self detentsFromMaxHeightFractions:_sheetCustomDetents];
}
Expand Down Expand Up @@ -651,7 +650,7 @@ - (void)updateFormSheetPresentationStyle
_sheetCornerRadius < 0 ? UISheetPresentationControllerAutomaticDimension : _sheetCornerRadius;

int detentIndex = _sheetCustomLargestUndimmedDetent != nil ? _sheetCustomLargestUndimmedDetent.intValue : -1;
if (detentIndex != -1 && [_sheetCustomDetents rns_isNotEmpty]) {
if (detentIndex != -1 && _sheetCustomDetents.count > 0) {
if (detentIndex >= 0 && detentIndex < _sheetCustomDetents.count) {
sheet.largestUndimmedDetentIdentifier = _sheetCustomLargestUndimmedDetent.stringValue;
} else {
Expand Down
12 changes: 0 additions & 12 deletions ios/utils/NSArray+RNSUtil.h

This file was deleted.

15 changes: 0 additions & 15 deletions ios/utils/NSArray+RNSUtil.mm

This file was deleted.

0 comments on commit 9a8eb64

Please sign in to comment.