diff --git a/src/NavigatorNavigationBar.js b/src/NavigatorNavigationBar.js index 61d50e9..c0737a5 100644 --- a/src/NavigatorNavigationBar.js +++ b/src/NavigatorNavigationBar.js @@ -164,12 +164,18 @@ class NavigatorNavigationBar extends React.Component { this._getComponent(componentName, route, index) ) ); - + return ( - {components} + style={[ + styles.navBarContainer, + !this.getShouldDisplay() && styles.navBarHidden, + navBarStyle, + this.props.style + ]} + > + {components} ); } @@ -220,6 +226,9 @@ var styles = StyleSheet.create({ right: 0, backgroundColor: 'transparent', }, + navBarHidden: { + zIndex: -1, + }, }); module.exports = NavigatorNavigationBar;