Skip to content

Commit 0912a24

Browse files
committed
rename
1 parent fe9d576 commit 0912a24

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ios/gamma/modals/form-sheet/RNSFormSheetHostComponentView.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ - (void)updateConfiguration
261261
return @[ [UISheetPresentationControllerDetent largeDetent] ];
262262
}
263263

264-
if (![self areDetentsSorted]) {
264+
if (![self areDetentsStrictlyAscending]) {
265265
RCTLogError(
266-
@"[RNScreens] The values in the detents array must be sorted in ascending order. Falling back to large detent.");
266+
@"[RNScreens] The values in the detents array must be in strictly ascending order. Falling back to large detent.");
267267

268268
return @[ [UISheetPresentationControllerDetent largeDetent] ];
269269
}
@@ -320,7 +320,7 @@ - (BOOL)areDetentsValid
320320
return YES;
321321
}
322322

323-
- (BOOL)areDetentsSorted
323+
- (BOOL)areDetentsStrictlyAscending
324324
{
325325
for (size_t i = 1; i < _detents.size(); i++) {
326326
if (_detents[i - 1] >= _detents[i]) {

0 commit comments

Comments
 (0)