Manually unset transitionIsRunning rather than going through _onTransitionEnd after state change

This commit is contained in:
Brent Vatne
2018-01-26 23:02:02 -08:00
parent f8426bef7e
commit 24bfab93b4

View File

@@ -124,7 +124,8 @@ class Transitioner extends React.Component {
// This is important because the stack navigator fires the completion prop when
// the transition is ended.
if (!animations.length) {
this.setState(nextState, this._onTransitionEnd);
this._isTransitionRunning = false;
this.setState(nextState);
return;
}