feat:Add cancelAnimation and clearAnimation
This commit is contained in:
@@ -314,8 +314,8 @@ class View {
|
||||
}
|
||||
});
|
||||
}
|
||||
cancelAnimation(context, animation) {
|
||||
return this.nativeChannel(context, "cancelAnimation")(animation.id).then(() => {
|
||||
clearAnimation(context, animation) {
|
||||
return this.nativeChannel(context, "clearAnimation")(animation.id).then(() => {
|
||||
this.__dirty_props__.translationX = this.translationX || 0;
|
||||
this.__dirty_props__.translationY = this.translationY || 0;
|
||||
this.__dirty_props__.scaleX = this.scaleX || 1;
|
||||
@@ -323,6 +323,9 @@ class View {
|
||||
this.__dirty_props__.rotation = this.rotation || 0;
|
||||
});
|
||||
}
|
||||
cancelAnimation(context, animation) {
|
||||
return this.nativeChannel(context, "cancelAnimation")(animation.id);
|
||||
}
|
||||
}
|
||||
__decorate$d([
|
||||
Property,
|
||||
|
||||
Reference in New Issue
Block a user