Clean up when transitioner state when bailing out early

This commit is contained in:
Brent Vatne
2018-01-26 18:55:38 -08:00
parent afcce1a0c0
commit f8426bef7e

View File

@@ -124,7 +124,7 @@ 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.setState(nextState, this._onTransitionEnd);
return;
}