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: guides/GUIDE_FOR_LIBRARY_AUTHORS.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -502,6 +502,8 @@ Allows for customizing font size to be used for back button title on iOS.
502
502
503
503
Whether the back button title should be visible. Defaults to `true`.
504
504
505
+
When set to `false` it works as a "kill switch": it enforces `backButtonDisplayMode=minimal` and ignores `backButtonDisplayMode`, `backTitleFontSize`, `backTitleFontFamily`, `disableBackButtonMenu`, and `backTitle` works only for back button menu.
506
+
505
507
### `blurEffect` (iOS only)
506
508
507
509
Blur effect to be applied to the header. Works with `backgroundColor`'s alpha < 1.
@@ -520,7 +522,9 @@ Boolean indicating whether to show the menu on longPress of iOS >= 14 back butto
520
522
521
523
### `backButtonDisplayMode` (iOS only)
522
524
523
-
Enum value indicating display mode of **default** back button. It works on iOS >= 14, and is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu` or `backTitle` is set. Otherwise, when the button is customized, under the hood we use iOS native `backButtonItem` which overrides `backButtonDisplayMode`. Read more [#2123](https://github.com/software-mansion/react-native-screens/pull/2123). Possible options:
525
+
Enum value indicating display mode of back button. It is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu`, `backTitle` and `backTitleVisible=false` is set. When the button is customized, under the hood we use iOS native `backButtonItem` which overrides `backButtonDisplayMode`. Read more [#2123](https://github.com/software-mansion/react-native-screens/pull/2123). The `backTitleVisible` forces `backButtonDisplayMode: minimal` and omits other values. Read more [#2800](https://github.com/software-mansion/react-native-screens/pull/2800)
526
+
527
+
Possible options:
524
528
525
529
-`default` – show given back button previous controller title, system generic or just icon based on available space
526
530
-`generic` – show given system generic or just icon based on available space
Copy file name to clipboardExpand all lines: native-stack/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,9 @@ Boolean indicating whether to show the menu on longPress of iOS >= 14 back butto
82
82
83
83
#### `backButtonDisplayMode` (iOS only)
84
84
85
-
Enum value indicating display mode of **default** back button. It works on iOS >= 14, and is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu` or `backTitle` is set. Otherwise, when the button is customized, under the hood we use iOS native `backButtonItem` which overrides `backButtonDisplayMode`. Read more [#2123](https://github.com/software-mansion/react-native-screens/pull/2123). Possible options:
85
+
Enum value indicating display mode of back button. It is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu`, `backTitle` and `backTitleVisible=false` is set. When the button is customized, under the hood we use iOS native `backButtonItem` which overrides `backButtonDisplayMode`. Read more [#2123](https://github.com/software-mansion/react-native-screens/pull/2123). The `backTitleVisible` forces `backButtonDisplayMode: minimal` and omits other values. Read more [#2800](https://github.com/software-mansion/react-native-screens/pull/2800)
86
+
87
+
Possible options:
86
88
87
89
-`default` – show given back button previous controller title, system generic or just icon based on available space
88
90
-`generic` – show given system generic or just icon based on available space
@@ -128,7 +130,9 @@ Style object for header back title. Supported properties:
128
130
129
131
#### `headerBackTitleVisible` (iOS only)
130
132
131
-
Whether the back button title should be visible or not. Defaults to `true`.
133
+
Whether the back button title should be visible. Defaults to `true`.
134
+
135
+
When set to `false` it works as a "kill switch": it enforces `backButtonDisplayMode=minimal` and ignores `backButtonDisplayMode`, `backTitleFontSize`, `backTitleFontFamily`, `disableBackButtonMenu`, and `backTitle` works only for back button menu.
Copy file name to clipboardExpand all lines: src/native-stack/types.tsx
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -140,11 +140,12 @@ export type NativeStackNavigationOptions = {
140
140
*/
141
141
disableBackButtonMenu?: boolean;
142
142
/**
143
-
* How the back button behaves by default (when not customized). Available on iOS>=14, and is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu` or `backTitle` is set.
144
-
* The following values are currently supported (they correspond to https://developer.apple.com/documentation/uikit/uinavigationitembackbuttondisplaymode?language=objc):
145
-
* - "default" – show given back button previous controller title, system generic or just icon based on available space
146
-
* - "generic" – show given system generic or just icon based on available space
147
-
* - "minimal" – show just an icon
143
+
* How the back button behaves. It is used only when none of: `headerBackTitleStyle`, `disableBackButtonMenu`, `headerBackTitle` and `headerBackTitleVisible=false` is set.
144
+
*
145
+
* - `default` – show given back button previous controller title, system generic or just icon based on available space
146
+
* - `generic` – show given system generic or just icon based on available space
* Whether the back button title should be visible or not. Defaults to `true`.
547
+
*
548
+
* When set to `false` it works as a "kill switch": it enforces `backButtonDisplayMode=minimal` and ignores `backButtonDisplayMode`, `backTitleFontSize`, `backTitleFontFamily`, `disableBackButtonMenu`.
549
+
* For `backTitle` it works only in back button menu.
* How the back button behaves by default (when not customized). Available on iOS>=14, and is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu` or `backTitle` is set.
574
-
* The following values are currently supported (they correspond to https://developer.apple.com/documentation/uikit/uinavigationitembackbuttondisplaymode?language=objc):
575
-
* - "default" – show given back button previous controller title, system generic or just icon based on available space
576
-
* - "generic" – show given system generic or just icon based on available space
577
-
* - "minimal" – show just an icon
577
+
* How the back button behaves. It is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu`, `backTitle` and `backTitleVisible=false` is set.
578
+
* To read more see [#2800](https://github.com/software-mansion/react-native-screens/pull/2800) and [#2800](https://github.com/software-mansion/react-native-screens/pull/2800).
579
+
*
580
+
* - `default` – show given back button previous controller title, system generic or just icon based on available space
581
+
* - `generic` – show given system generic or just icon based on available space
0 commit comments