Fix #4608 - remove header left component only when a headerLeft optio… (#4679)

* Fix #4608 - remove header left component only when a headerLeft option is not specified

* Update CHANGELOG.md
This commit is contained in:
Matteo Codogno
2018-07-12 20:42:56 +02:00
parent 3876521eca
commit fc50e4a600
2 changed files with 4 additions and 1 deletions

View File

@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- StackNavigator.replace method no longer requires a key param. If the key is left undefined, the last screen in the stack will be replaced.
### Fixed
- Support headerLeft component for the first screen in a stack (#4608).
## [2.6.2] - [2018-07-06](https://github.com/react-navigation/react-navigation/releases/tag/2.6.2)
### Changed
- Relax vertical padding warnings on header.

View File

@@ -141,7 +141,7 @@ class Header extends React.PureComponent {
return options.headerLeft;
}
if (props.scene.index === 0) {
if (!options.headerLeft && props.scene.index === 0) {
return;
}