[ReactNative] Fix for Navigator.replacePreviousAndPop

This commit is contained in:
Eric Vicenti 2015-04-23 14:16:10 -07:00
parent 34a5aa1d0a
commit 36afc46274
1 changed files with 1 additions and 2 deletions

View File

@ -1079,8 +1079,7 @@ var Navigator = React.createClass({
// To avoid visual glitches, we never re-render scenes during a transition.
// We assume that `state.updatingRangeLength` will have a length during the
// initial render of any scene
var shouldRenderScenes = !this.state.isAnimating &&
this.state.updatingRangeLength !== 0;
var shouldRenderScenes = this.state.updatingRangeLength !== 0;
if (shouldRenderScenes) {
return (
<StaticContainer shouldUpdate={true}>