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
+15-4
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
@@ -186,9 +188,18 @@ How the back button displays icon and title.
186
188
187
189
Supported values:
188
190
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.
191
+
- "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).
192
+
- "generic" – Displays one of the following depending on the available space: generic title (e.g. 'Back') or no title (only icon).
193
+
- "minimal" – Always displays only the icon without a title.
194
+
195
+
The space-aware behavior is disabled when:
196
+
197
+
- The iOS version is 13 or lower
198
+
- Custom back title is set (e.g. with `headerBackTitle`)
199
+
- Custom font family or size is set (e.g. with `headerBackTitleStyle`)
200
+
- Back button menu is disabled (e.g. with `headerBackButtonMenuEnabled`)
201
+
202
+
In such cases, a static title and icon are always displayed.
0 commit comments