From 49551f4444373946b2788507f21c7d9477811aa3 Mon Sep 17 00:00:00 2001 From: alduzy Date: Tue, 1 Oct 2024 16:32:10 +0200 Subject: [PATCH] updating props --- ios/RNSScreen.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/RNSScreen.mm b/ios/RNSScreen.mm index ab4077f951..395089df72 100644 --- a/ios/RNSScreen.mm +++ b/ios/RNSScreen.mm @@ -1158,6 +1158,10 @@ - (void)updateProps:(react::Props::Shared const &)props oldProps:(react::Props:: [self setSheetAllowedDetents:[RNSConvert detentFractionsArrayFromVector:newScreenProps.sheetAllowedDetents]]; } + if (newScreenProps.sheetInitialDetent != oldScreenProps.sheetInitialDetent) { + [self setSheetInitialDetent:newScreenProps.sheetInitialDetent]; + } + if (newScreenProps.sheetLargestUndimmedDetent != oldScreenProps.sheetLargestUndimmedDetent) { [self setSheetLargestUndimmedDetent:[NSNumber numberWithInt:newScreenProps.sheetLargestUndimmedDetent]]; }