diff --git a/src/NavBar.js b/src/NavBar.js index 78a820ceb..8b631d2e1 100644 --- a/src/NavBar.js +++ b/src/NavBar.js @@ -78,19 +78,19 @@ export default class NavBar extends React.Component { } _renderBackButton() { - let backButtonImage; + let buttonImage; if (this.props.navigationState.index === 0) { if(!!this.context.drawer && typeof this.context.drawer.toggle === 'function'){ - backButtonImage = this.props.navigationState.drawerImage || require('./menu_burger.png'); + buttonImage = this.props.navigationState.drawerImage || require('./menu_burger.png'); return ( { var drawer = this.context.drawer; drawer.toggle(); }}> - + ); }else{ @@ -98,11 +98,11 @@ export default class NavBar extends React.Component { } } - backButtonImage = this.props.navigationState.backButtonImage || require('./back_chevron.png'); + buttonImage = this.props.navigationState.backButtonImage || require('./back_chevron.png'); return ( - + ); }