[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:
parent
00e85cbc85
commit
4e650f05d1
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue