mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove legacy AnimationManagerModule
Summary: This code was shipped as part of the initial open-source release but was never used. Reviewed By: sahrens Differential Revision: D14649389 fbshipit-source-id: 0c068ca69b91d275008f4a7af77a23a4f1470c18
This commit is contained in:
committed by
Facebook Github Bot
parent
d9711e2693
commit
a333c2b202
@@ -11,7 +11,6 @@ import android.view.View;
|
||||
import android.view.View.MeasureSpec;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.react.animation.Animation;
|
||||
import com.facebook.react.bridge.Arguments;
|
||||
import com.facebook.react.bridge.Callback;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
@@ -694,29 +693,6 @@ public class UIImplementation {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a new Animation that can then be added to a View using {@link #addAnimation}.
|
||||
*/
|
||||
public void registerAnimation(Animation animation) {
|
||||
mOperationsQueue.enqueueRegisterAnimation(animation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds an Animation previously registered with {@link #registerAnimation} to a View and starts it
|
||||
*/
|
||||
public void addAnimation(int reactTag, int animationID, Callback onSuccess) {
|
||||
assertViewExists(reactTag, "addAnimation");
|
||||
mOperationsQueue.enqueueAddAnimation(reactTag, animationID, onSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes an existing Animation, canceling it if it was in progress.
|
||||
*/
|
||||
public void removeAnimation(int reactTag, int animationID) {
|
||||
assertViewExists(reactTag, "removeAnimation");
|
||||
mOperationsQueue.enqueueRemoveAnimation(animationID);
|
||||
}
|
||||
|
||||
/**
|
||||
* LayoutAnimation API on Android is currently experimental. Therefore, it needs to be enabled
|
||||
* explicitly in order to avoid regression in existing application written for iOS using this API.
|
||||
|
||||
Reference in New Issue
Block a user