mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Implement completion callback for LayoutAnimation on Android
Summary: All animations are scheduled by the UIManager while it processes a batch of changes, so we can just wait to see what the longest animation is and cancel+reschedule the callback. Reviewed By: mdvacca Differential Revision: D14656733 fbshipit-source-id: 4cbbb7e741219cd43f511f2ce750c53c30e2b2ca
This commit is contained in:
committed by
Facebook Github Bot
parent
a333c2b202
commit
f571c62ddf
+2
-2
@@ -729,8 +729,8 @@ public class NativeViewHierarchyManager {
|
||||
mJSResponderHandler.clearJSResponder();
|
||||
}
|
||||
|
||||
void configureLayoutAnimation(final ReadableMap config) {
|
||||
mLayoutAnimator.initializeFromConfig(config);
|
||||
void configureLayoutAnimation(final ReadableMap config, final Callback onAnimationComplete) {
|
||||
mLayoutAnimator.initializeFromConfig(config, onAnimationComplete);
|
||||
}
|
||||
|
||||
void clearLayoutAnimation() {
|
||||
|
||||
Reference in New Issue
Block a user