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
@@ -720,11 +720,8 @@ public class UIImplementation {
|
||||
* interrupted. In this case, callback parameter will be false.
|
||||
* @param error will be called if there was an error processing the animation
|
||||
*/
|
||||
public void configureNextLayoutAnimation(
|
||||
ReadableMap config,
|
||||
Callback success,
|
||||
Callback error) {
|
||||
mOperationsQueue.enqueueConfigureLayoutAnimation(config, success, error);
|
||||
public void configureNextLayoutAnimation(ReadableMap config, Callback success) {
|
||||
mOperationsQueue.enqueueConfigureLayoutAnimation(config, success);
|
||||
}
|
||||
|
||||
public void setJSResponder(int reactTag, boolean blockNativeResponder) {
|
||||
|
||||
Reference in New Issue
Block a user