[ReactNative] setTimeout hack avoids POPAnimation race condition

Summary:
Having bugs in Groups because POPAnimation experiences a race condition. This hack avoids that for now while we transition away from POPAnimation altogether.
This commit is contained in:
Eric Vicenti 2015-07-02 10:32:13 -07:00
parent 00e85cbc85
commit 4e650f05d1
1 changed files with 4 additions and 1 deletions

View File

@ -120,7 +120,10 @@ var POPAnimationMixin = {
}
doneCallback && doneCallback(finished);
};
POPAnimation.addAnimation(nodeHandle, animID, cleanupWrapper);
// Hack to aviod race condition. This delay should be imperceptible:
setTimeout(() => {
POPAnimation.addAnimation(nodeHandle, animID, cleanupWrapper);
}, 10);
},
/**