Skip to content

Commit

Permalink
updating props
Browse files Browse the repository at this point in the history
  • Loading branch information
alduzy committed Oct 1, 2024
1 parent 2eb9031 commit 49551f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
}
Expand Down

0 comments on commit 49551f4

Please sign in to comment.