feat: Image add isAnimating, startAnimating and stopAnimating API
This commit is contained in:
@@ -2154,6 +2154,15 @@ var Image = /** @class */ (function (_super) {
|
||||
function Image() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
Image.prototype.isAnimating = function (context) {
|
||||
return this.nativeChannel(context, "isAnimating")();
|
||||
};
|
||||
Image.prototype.startAnimating = function (context) {
|
||||
return this.nativeChannel(context, "startAnimating")();
|
||||
};
|
||||
Image.prototype.stopAnimating = function (context) {
|
||||
return this.nativeChannel(context, "stopAnimating")();
|
||||
};
|
||||
__decorate$a([
|
||||
Property,
|
||||
__metadata$a("design:type", String)
|
||||
|
@@ -1619,6 +1619,15 @@ exports.ScaleType = void 0;
|
||||
ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill";
|
||||
})(exports.ScaleType || (exports.ScaleType = {}));
|
||||
class Image extends View {
|
||||
isAnimating(context) {
|
||||
return this.nativeChannel(context, "isAnimating")();
|
||||
}
|
||||
startAnimating(context) {
|
||||
return this.nativeChannel(context, "startAnimating")();
|
||||
}
|
||||
stopAnimating(context) {
|
||||
return this.nativeChannel(context, "stopAnimating")();
|
||||
}
|
||||
}
|
||||
__decorate$a([
|
||||
Property,
|
||||
|
@@ -3140,6 +3140,15 @@ exports.ScaleType = void 0;
|
||||
ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill";
|
||||
})(exports.ScaleType || (exports.ScaleType = {}));
|
||||
class Image extends View {
|
||||
isAnimating(context) {
|
||||
return this.nativeChannel(context, "isAnimating")();
|
||||
}
|
||||
startAnimating(context) {
|
||||
return this.nativeChannel(context, "startAnimating")();
|
||||
}
|
||||
stopAnimating(context) {
|
||||
return this.nativeChannel(context, "stopAnimating")();
|
||||
}
|
||||
}
|
||||
__decorate$a([
|
||||
Property,
|
||||
|
Reference in New Issue
Block a user