You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/native-stack-navigator.md
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,9 @@ This will have no effect on the first screen in the stack.
174
174
175
175
#### `headerBackTitle`
176
176
177
-
Title string used by the back button on iOS. Defaults to the previous scene's title, or "Back" if there's not enough space. Use `headerBackButtonDisplayMode` to customize the behavior.
177
+
Title string used by the back button on iOS. Defaults to the previous scene's title.
178
+
179
+
Use `headerBackButtonDisplayMode: "minimal"` to hide it.
178
180
179
181
Only supported on iOS.
180
182
@@ -185,10 +187,17 @@ Only supported on iOS.
185
187
How the back button displays icon and title.
186
188
187
189
Supported values:
190
+
- "default" - Displays one of the following depending on the available space: previous screen's title, generic title (e.g. 'Back') or no title (only icon).
191
+
- "generic" – Displays one of the following depending on the available space: generic title (e.g. 'Back') or no title (only icon).
192
+
- "minimal" – Always displays only the icon without a title.
193
+
194
+
The space-aware behavior is disabled when:
195
+
- The iOS version is 13 or lower
196
+
- Custom back title is set (e.g. with `headerBackTitle`)
197
+
- Custom font family or size is set (e.g. with `headerBackTitleStyle`)
198
+
- Back button menu is disabled (e.g. with `headerBackButtonMenuEnabled`)
188
199
189
-
-`default`: Displays one of the following depending on the available space: previous screen's title, generic title (e.g. 'Back') or no title (only icon).
190
-
-`generic`: Displays one of the following depending on the available space: generic title (e.g. 'Back') or no title (only icon). iOS >= 14 only, falls back to "default" on older iOS versions.
191
-
-`minimal`: Always displays only the icon without a title.
200
+
In such cases, a static title and icon are always displayed.
0 commit comments