Socket
Socket
Sign inDemoInstall

nativescript-lottie

Package Overview
Dependencies
0
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

LICENSE.md

13

nativescript-lottie.android.js

@@ -16,9 +16,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var nativescript_lottie_common_1 = require("./nativescript-lottie.common");
var utils_1 = require("./utils");
var nativescript_lottie_common_1 = require("./nativescript-lottie.common");
var LottieProperty = com.airbnb.lottie.LottieProperty;
var LottieKeyPath = com.airbnb.lottie.model.KeyPath;
var LottieValueCallback = com.airbnb.lottie.value.LottieValueCallback;
var DEFAULT_MAX_PROGRESS = 1;
var DEFAULT_MIN_PROGRESS = 0;
var LottieView = (function (_super) {

@@ -126,3 +121,3 @@ __extends(LottieView, _super);

});
this.nativeView.addValueCallback(new LottieKeyPath(nativeKeyPath_1), LottieProperty.COLOR, new LottieValueCallback(new java.lang.Integer(value.android)));
this.nativeView.addValueCallback(new com.airbnb.lottie.model.KeyPath(nativeKeyPath_1), com.airbnb.lottie.LottieProperty.COLOR, new com.airbnb.lottie.value.LottieValueCallback(new java.lang.Integer(value.android)));
}

@@ -143,3 +138,3 @@ };

value = utils_1.clamp(value);
this.nativeView.addValueCallback(new LottieKeyPath(nativeKeyPath_2), LottieProperty.OPACITY, new LottieValueCallback(new java.lang.Integer(value * 100)));
this.nativeView.addValueCallback(new com.airbnb.lottie.model.KeyPath(nativeKeyPath_2), com.airbnb.lottie.LottieProperty.OPACITY, new com.airbnb.lottie.value.LottieValueCallback(new java.lang.Integer(value * 100)));
}

@@ -149,3 +144,3 @@ };

if (this.nativeView) {
this.nativeView.setMinAndMaxProgress(DEFAULT_MIN_PROGRESS, DEFAULT_MAX_PROGRESS);
this.nativeView.setMinAndMaxProgress(0, 1);
this.nativeView.playAnimation();

@@ -152,0 +147,0 @@ }

{
"name": "nativescript-lottie",
"version": "3.0.2",
"version": "3.0.3",
"description": "NativeScript plugin to expose AirBnB Lottie library",

@@ -71,2 +71,3 @@ "main": "nativescript-lottie",

"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
"generate.typings.ios": "cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'",
"precommit": "lint-staged"

@@ -73,0 +74,0 @@ },

@@ -19,8 +19,2 @@ <a align="center" href="https://www.npmjs.com/package/nativescript-lottie">

</a>
<a href="https://github.com/bradmartin/nativescript-lottie/network">
<img src="https://img.shields.io/github/forks/bradmartin/nativescript-lottie.svg" alt="forks">
</a>
<a href="https://github.com/bradmartin/nativescript-lottie/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/bradmartin/nativescript-lottie.svg" alt="license">
</a>
<a href="https://paypal.me/bradwayne88">

@@ -27,0 +21,0 @@ <img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="donate">

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc