feat:Add cancelAnimation and clearAnimation

This commit is contained in:
pengfei.zhou
2021-04-22 11:46:24 +08:00
committed by osborn
parent 15a62bad8a
commit e7ced92281
10 changed files with 132 additions and 94 deletions

View File

@@ -352,6 +352,10 @@ export abstract class View implements Modeling {
this.__dirty_props__.rotation = this.rotation || 0
})
}
cancelAnimation(context: BridgeContext, animation: IAnimation) {
return this.nativeChannel(context, "cancelAnimation")(animation.id)
}
}
export abstract class Superview extends View {