mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 09:21:09 +08:00
return null if it is passed (#3021)
This commit is contained in:
committed by
Spencer Carli
parent
04c075c1bb
commit
cc355dcee9
@@ -142,7 +142,10 @@ class Header extends React.PureComponent<Props, State> {
|
||||
_renderLeftComponent = (props: SceneProps): ?React.Node => {
|
||||
// $FlowFixMe
|
||||
const { options } = this.props.getScreenDetails(props.scene);
|
||||
if (React.isValidElement(options.headerLeft)) {
|
||||
if (
|
||||
React.isValidElement(options.headerLeft) ||
|
||||
options.headerLeft === null
|
||||
) {
|
||||
return options.headerLeft;
|
||||
}
|
||||
if (props.scene.index === 0) {
|
||||
|
||||
Reference in New Issue
Block a user