diff --git a/src/NavBar.js b/src/NavBar.js index 1629ea908..4ba60d66b 100644 --- a/src/NavBar.js +++ b/src/NavBar.js @@ -242,7 +242,8 @@ class NavBar extends React.Component { ); } - if ((!!state.onRight ^ !!(state.rightTitle || state.rightButtonImage))) { + if ((!!state.onRight ^ !!(typeof(state.rightTitle) !== 'undefined' + || typeof(state.rightButtonImage) !== 'undefined'))) { console.warn( `Both onRight and rightTitle/rightButtonImage must be specified for the scene: ${state.name}`