Gathering detailed insights and metrics for nativescript-akylas-lottie
Gathering detailed insights and metrics for nativescript-akylas-lottie
Gathering detailed insights and metrics for nativescript-akylas-lottie
Gathering detailed insights and metrics for nativescript-akylas-lottie
NativeScript plugin to expose Airbnb Lottie
npm install nativescript-akylas-lottie
Typescript
Module System
Node Version
NPM Version
TypeScript (52.22%)
JavaScript (30.63%)
HTML (8.51%)
SCSS (4.64%)
Vue (3.54%)
Ruby (0.35%)
CSS (0.11%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
225 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Oct 21, 2021
Latest Version
4.0.14
Package Id
nativescript-akylas-lottie@4.0.14
Unpacked Size
59.79 kB
Size
11.93 kB
File Count
19
NPM Version
lerna/3.20.2/node@v12.11.0+x64 (darwin)
Node Version
12.11.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
All notable changes to this project will be documented in the changelog.
The .gif does not do the fluid animations justice
To install execute:
tns plugin add nativescript-lottie
1<Page 2 xmlns="http://schemas.nativescript.org/tns.xsd" 3 xmlns:Lottie="nativescript-lottie" navigatingTo="navigatingTo" class="page"> 4 <StackLayout> 5 <Lottie:LottieView src="PinJump.json" height="130" loop="true" autoPlay="true" loaded="yourLoadedEvent" /> 6 </StackLayout> 7</Page>
1import { LottieView } from "nativescript-lottie"; 2 3public yourLoadedEvent(args) { 4 this._myLottie = args.object as LottieView; /// this is the instance of the LottieAnimationView 5}
1<StackLayout> 2 <LottieView width="100" height="150" [src]="src" [loop]="loop" [autoPlay]="autoPlay" (loaded)="lottieViewLoaded($event)"> </LottieView> 3</StackLayout>
1import { Component } from '@angular/core'; 2import { registerElement } from 'nativescript-angular'; 3import { LottieView } from 'nativescript-lottie'; 4 5registerElement('LottieView', () => LottieView); 6 7@Component({ 8 templateUrl: 'home.component.html', 9 moduleId: module.id 10}) 11export class HomeComponent { 12 public loop: boolean = true; 13 public src: string; 14 public autoPlay: boolean = true; 15 public animations: Array<string>; 16 17 private _lottieView: LottieView; 18 19 constructor() { 20 this.animations = [ 21 'Mobilo/A.json', 22 'Mobilo/D.json', 23 'Mobilo/N.json', 24 'Mobilo/S.json' 25 ]; 26 this.src = this.animations[0]; 27 } 28 29 lottieViewLoaded(event) { 30 this._lottieView = <LottieView>event.object; 31 } 32}
1Vue.registerElement( 2 'LottieView', 3 () => require('nativescript-lottie').LottieView 4);
1<template> 2 <Page class="page"> 3 <StackLayout> 4 <LottieView height="130" src="PinJump.json" :loop="true" :autoPlay="true" @loaded="lottieViewLoaded"></LottieView> 5 </StackLayout> 6 </page 7</template> 8 9<script> 10 export default { 11 methods: { 12 lottieViewLoaded(args) { 13 this._lottieView = args.object; 14 }, 15 }, 16 data() { 17 return { 18 _lottieView: null, 19 } 20 } 21 }; 22</script>
:fire: You can find animations in the sample-effects
folder.
Place your animation files in the NS app's app/App_Resources/Android/src/main/assets
folder.
Note: In a nativescript-vue project the above folder may not exist. Place the files in platforms/android/app/src/main/assets
.
Place your animations files in your app/App_Resources/iOS/
folder.
Property | Type | Default | Description |
---|---|---|---|
autoPlay | boolean | false | Start LottieView animation on load if true . |
loop | boolean | false | Loop continuously animation if true . |
src | string | null | Animation path to .json file. |
Property | Type | Default | Description |
---|---|---|---|
completionBlock | (boolean) => void | null | Completion block to be executed upon completion of the animation. The animation is considered complete when it finishes playing and is no longer looping. |
duration | number | null | Get the duration of the animation. |
progress | number | 0 | Get/set the progress of the animation. |
speed | number | 1 | Get/set the speed of the animation. |
Method | Return | Parameters | Description |
---|---|---|---|
cancelAnimation | void | None | Pauses the animation for the LottieView instance. |
isAnimating | boolean | None | Returns true if the LottieView is animating, else false. |
playAnimation | void | None | Plays the animation for the LottieView instance. |
playAnimationFromProgressToProgress | void | startProgress, endProgress | Plays the animation for the LottieView instance from the specified start and end progress values (between 0 and 1). |
setColorValueDelegateForKeyPath | void | value, keyPath | Sets the provided color value on each property that matches the specified keyPath in the LottieView instance. |
setOpacityValueDelegateForKeyPath | void | value, keyPath | Sets the provided opacity value (0 - 1) on each property that matches the specified keyPath in the LottieView instance. |
bradmartin | NathanWalker | rhanb | HamdiWanis |
itstheceo | mudlabs |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More