Summary: Fix the bug reported as https://github.com/facebook/react-native/pull/8071

Reviewed By: fkgozali

Differential Revision: D3553062

fbshipit-source-id: 286feddc268f51c0d9005a8831640c5e6af4880e
This commit is contained in:
Hedger Wang 2016-07-12 17:39:10 -07:00 коммит произвёл Facebook Github Bot 1
Родитель f317b9f28f
Коммит 5189c94a6e
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -501,13 +501,13 @@ var Navigator = React.createClass({
},
_transitionTo: function(destIndex, velocity, jumpSpringTo, cb) {
if (
destIndex === this.state.presentedIndex &&
this.state.transitionQueue.length === 0
) {
if (this.state.presentedIndex === destIndex) {
cb && cb();
return;
}
if (this.state.transitionFromIndex !== null) {
// Navigation is still transitioning, put the `destIndex` into queue.
this.state.transitionQueue.push({
destIndex,
velocity,