This repository was archived by the owner on Feb 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
packages/native-stack/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ export type NativeStackNavigationOptions = {
6565 * @platform ios
6666 */
6767 headerBackTitle ?: string ;
68+ /**
69+ * Whether the back button title should be visible or not. Defaults to `true`.
70+ * Only supported on iOS.
71+ *
72+ * @platform ios
73+ */
74+ headerBackTitleVisible ?: boolean ;
6875 /**
6976 * Whether to show the header.
7077 */
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default function HeaderConfig(props: Props) {
2020 headerRight,
2121 headerTitle,
2222 headerBackTitle,
23+ headerBackTitleVisible = true ,
2324 headerHideBackButton,
2425 headerHideShadow,
2526 headerTintColor,
@@ -53,7 +54,7 @@ export default function HeaderConfig(props: Props) {
5354 ? headerTitleStyle . color
5455 : headerTintColor
5556 }
56- backTitle = { headerBackTitle }
57+ backTitle = { headerBackTitleVisible ? headerBackTitle : '' }
5758 backTitleFontFamily = { headerBackTitleStyle . fontFamily }
5859 backTitleFontSize = { headerBackTitleStyle . fontSize }
5960 color = { headerTintColor }
You can’t perform that action at this time.
0 commit comments