mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
Fix regression in modular back button
This commit is contained in:
@@ -42,7 +42,7 @@ class ModularHeaderBackButton extends React.PureComponent {
|
||||
|
||||
// TODO: When we've sorted out measuring in the header, let's revisit this.
|
||||
// This is clearly a bad workaround.
|
||||
if (backButtonTitle.length > 8) {
|
||||
if (backButtonTitle && backButtonTitle.length > 8) {
|
||||
backButtonTitle = truncatedTitle;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user