diff --git a/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js b/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js index a5be41abf..17d36a14d 100644 --- a/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js +++ b/Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js @@ -153,11 +153,11 @@ var NavigatorNavigationBar = React.createClass({ height: this.props.navigationStyles.General.TotalNavHeight, }; var navState = this.props.navState; - var components = COMPONENT_NAMES.map(function (componentName) { - return navState.routeStack.map( - this._getComponent.bind(this, componentName) - ); - }, this); + var components = navState.routeStack.map((route, index) => + COMPONENT_NAMES.map(componentName => + this._getComponent(componentName, route, index) + ) + ); return ( diff --git a/Libraries/CustomComponents/Navigator/NavigatorNavigationBarStylesIOS.js b/Libraries/CustomComponents/Navigator/NavigatorNavigationBarStylesIOS.js index 9e1467751..1ae2a94ea 100644 --- a/Libraries/CustomComponents/Navigator/NavigatorNavigationBarStylesIOS.js +++ b/Libraries/CustomComponents/Navigator/NavigatorNavigationBarStylesIOS.js @@ -78,17 +78,17 @@ var Stages = { Left: { Title: merge(BASE_STYLES.Title, { left: -SCREEN_WIDTH / 2, opacity: 0 }), LeftButton: merge(BASE_STYLES.LeftButton, { left: -SCREEN_WIDTH / 3, opacity: 0 }), - RightButton: merge(BASE_STYLES.RightButton, { left: SCREEN_WIDTH / 3, opacity: 0 }), + RightButton: merge(BASE_STYLES.RightButton, { opacity: 0 }), }, Center: { Title: merge(BASE_STYLES.Title, { left: 0, opacity: 1 }), LeftButton: merge(BASE_STYLES.LeftButton, { left: 0, opacity: 1 }), - RightButton: merge(BASE_STYLES.RightButton, { left: 2 * SCREEN_WIDTH / 3 - 0, opacity: 1 }), + RightButton: merge(BASE_STYLES.RightButton, { opacity: 1 }), }, Right: { Title: merge(BASE_STYLES.Title, { left: SCREEN_WIDTH / 2, opacity: 0 }), LeftButton: merge(BASE_STYLES.LeftButton, { left: 0, opacity: 0 }), - RightButton: merge(BASE_STYLES.RightButton, { left: SCREEN_WIDTH, opacity: 0 }), + RightButton: merge(BASE_STYLES.RightButton, { opacity: 0 }), }, };