mirror of
https://github.com/status-im/react-navigation-stack.git
synced 2025-02-18 09:27:01 +00:00
An explicit null for headerBackTitle should mean no back title
This commit is contained in:
parent
7d457e8126
commit
089173f50c
@ -67,7 +67,9 @@ class HeaderBackButton extends React.PureComponent {
|
||||
|
||||
let { initialTextWidth } = this.state;
|
||||
|
||||
if (!title) {
|
||||
if (title === null) {
|
||||
return null;
|
||||
} else if (!title) {
|
||||
return truncatedTitle;
|
||||
} else if (initialTextWidth && width && initialTextWidth > width) {
|
||||
return truncatedTitle;
|
||||
@ -84,7 +86,9 @@ class HeaderBackButton extends React.PureComponent {
|
||||
truncatedTitle,
|
||||
} = this.props;
|
||||
|
||||
if (!backTitleVisible) {
|
||||
let backTitleText = this._getTitleText();
|
||||
|
||||
if (!backTitleVisible || backTitleText === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user