mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 09:13:43 +08:00
Fix headerLeft on first screen regression
This commit is contained in:
@@ -136,6 +136,10 @@ class Header extends React.PureComponent {
|
||||
return options.headerLeft;
|
||||
}
|
||||
|
||||
if (props.scene.index === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const backButtonTitle = this._getBackButtonTitleString(props.scene);
|
||||
const truncatedBackButtonTitle = this._getTruncatedBackButtonTitle(
|
||||
props.scene
|
||||
@@ -197,10 +201,6 @@ class Header extends React.PureComponent {
|
||||
_renderLeft(props) {
|
||||
const { options } = this.props.getScreenDetails(props.scene);
|
||||
|
||||
if (props.scene.index === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const { transitionPreset } = this.props;
|
||||
|
||||
// On Android, or if we have a custom header left, or if we have a custom back image, we
|
||||
|
||||
Reference in New Issue
Block a user