mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-07 09:17:55 +08:00
[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:
@@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user