Skip to content

Commit 60ab991

Browse files
committed
Cleanup in RNSScreenStack
1 parent b8b325f commit 60ab991

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

ios/RNSScreenStack.mm

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -492,14 +492,9 @@ - (void)setModalViewControllers:(NSArray<UIViewController *> *)controllers
492492
UIViewController *next = controllers[i];
493493
BOOL lastModal = (i == controllers.count - 1);
494494

495-
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_13_0) && \
496-
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
497-
if (@available(iOS 13.0, tvOS 13.0, *)) {
498-
// Inherit UI style from its parent - solves an issue with incorrect style being applied to some UIKit views
499-
// like date picker or segmented control.
500-
next.overrideUserInterfaceStyle = self->_controller.overrideUserInterfaceStyle;
501-
}
502-
#endif
495+
// Inherit UI style from its parent - solves an issue with incorrect style being applied to some UIKit views
496+
// like date picker or segmented control.
497+
next.overrideUserInterfaceStyle = self->_controller.overrideUserInterfaceStyle;
503498

504499
BOOL shouldAnimate = lastModal && [next isKindOfClass:[RNSScreen class]] &&
505500
((RNSScreen *)next).screenView.stackAnimation != RNSScreenStackAnimationNone;

0 commit comments

Comments
 (0)