Skip to content

Commit a1dbae1

Browse files
authored
fix(iOS): add missing largeTitleBackgroundColor prop (#2500)
## Description <!-- Description and motivation for this PR. Include Fixes #<number> if this is fixing some issue. Fixes # . --> ## Changes <!-- Please describe things you've changed here, make a **high level** overview, if change is simple you can omit this section. For example: - Updated `about.md` docs --> <!-- ## Screenshots / GIFs Here you can add screenshots / GIFs documenting your change. You can add before / after section if you're changing some behavior. ### Before ### After --> ## Test code and steps to reproduce <!-- Please include code that can be used to test this change and short description how this example should work. This snippet should be as minimal as possible and ready to be pasted into editor (don't exclude exports or remove "not important" parts of reproduction example) --> ## Checklist - [ ] Included code example that can be used to test this change - [ ] Updated TS types - [ ] Updated documentation: <!-- For adding new props to native-stack --> - [ ] https://github.com/software-mansion/react-native-screens/blob/main/guides/GUIDE_FOR_LIBRARY_AUTHORS.md - [ ] https://github.com/software-mansion/react-native-screens/blob/main/native-stack/README.md - [ ] https://github.com/software-mansion/react-native-screens/blob/main/src/types.tsx - [ ] https://github.com/software-mansion/react-native-screens/blob/main/src/native-stack/types.tsx - [ ] Ensured that CI passes
1 parent c0caddb commit a1dbae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/RNSScreenStackHeaderConfig.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,8 @@ - (void)updateProps:(react::Props::Shared const &)props oldProps:(react::Props::
964964
_largeTitleFontWeight = RCTNSStringFromStringNilIfEmpty(newScreenProps.largeTitleFontWeight);
965965
_largeTitleFontSize = [self getFontSizePropValue:newScreenProps.largeTitleFontSize];
966966
_largeTitleHideShadow = newScreenProps.largeTitleHideShadow;
967-
967+
_largeTitleBackgroundColor = RCTUIColorFromSharedColor(newScreenProps.largeTitleBackgroundColor);
968+
968969
_backTitle = RCTNSStringFromStringNilIfEmpty(newScreenProps.backTitle);
969970
if (newScreenProps.backTitleFontFamily != oldScreenProps.backTitleFontFamily) {
970971
_backTitleFontFamily = RCTNSStringFromStringNilIfEmpty(newScreenProps.backTitleFontFamily);

0 commit comments

Comments
 (0)