Skip to content

Commit 506396a

Browse files
fix(mobile): preserve custom titles with empty header items
1 parent d022621 commit 506396a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎patches/@react-navigation%[email protected]‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ index 08055b2..8718847 100644
134134
hidesSharedBackground: headerLeftBackgroundVisible === false,
135135
children: headerLeftElement
136136
- }) : null, headerTitleElement != null ? /*#__PURE__*/_jsx(ScreenStackHeaderCenterView, {
137-
+ }) : null, centerItems ? centerItems.map((item, index) => {
137+
+ }) : null, centerItems?.length ? centerItems.map((item, index) => {
138138
+ if (item.type === 'custom') {
139139
+ return /*#__PURE__*/_jsx(ScreenStackHeaderCenterView, {
140140
+ hidesSharedBackground: item.hidesSharedBackground,

‎pnpm-lock.yaml‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)