nativescript-shimmer-enduco
Version:
Facebook shimmer effect for your NativeScript app - iOS and Android.
21 lines • 831 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 FBShimmeringView.alloc().initWithFrame(CGRectMake(0, 0, 0, 0));
};
Shimmer.prototype.initNativeView = function () {
this.nativeView.contentView = this.content.ios;
};
Shimmer.prototype[shimmer_common_1.enabledProperty.setNative] = function (value) {
this.nativeView.shimmering = value;
};
return Shimmer;
}(shimmer_common_1.Shimmer));
exports.Shimmer = Shimmer;
//# sourceMappingURL=shimmer.ios.js.map
;