nativescript-shimmer-enduco
Version:
Facebook shimmer effect for your NativeScript app - iOS and Android.
23 lines • 816 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var shimmer_common_1 = require("./shimmer.common");
var Shimmer = (function (_super) {
__extends(Shimmer, _super);
function Shimmer() {
return _super !== null && _super.apply(this, arguments) || this;
}
Shimmer.prototype.createNativeView = function () {
return new com.facebook.shimmer.ShimmerFrameLayout(this._context);
};
Shimmer.prototype[shimmer_common_1.enabledProperty.setNative] = function (value) {
if (value) {
this.nativeView.startShimmer();
}
else {
this.nativeView.stopShimmer();
}
};
return Shimmer;
}(shimmer_common_1.Shimmer));
exports.Shimmer = Shimmer;
//# sourceMappingURL=shimmer.android.js.map
;