An explicit null for headerBackTitle should mean no back title

This commit is contained in:
Brent Vatne 2018-10-02 14:56:26 -07:00
parent 7d457e8126
commit 089173f50c

View File

@ -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;
}