JSPM

  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q52339F
  • License Apache-2.0

Native modules that allows you to use Airbnb Lottie animations with Axway Titanium native mobile apps.

Package Exports

  • @titanium/lottie

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@titanium/lottie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@titanium/lottie

@titanium/lottie

Native modules that allows you to use Airbnb Lottie animations with Axway Titanium native mobile apps.

📝 Description

This is a repackaging of the compiled iOS and Android modules for Ti.Animation to allow for installation via npm.

🚀 Getting Started

Install @titanium/lottie in root of project

npm install @titanium/lottie

Create an an animation in controller

const lottie = require('@titanium/lottie');

const animation = lottie.createAnimationView({
   id: 'lottie_test',
   file: 'lottie_sample.json',
   loop: true,
   autoStart: true,
   height: 500,
   width: Ti.UI.FILL,
});

// add the animation to any window or view
$.index.add(animation);

OR

Create an an animation in view

<AnimationView 
   id="lottie_test" 
   module="@titanium/lottie" 
   file="lottie_sample.json" 
   loop="true" 
   autoStart="true" 
   height="500" 
   width="fill" />

✨Features

  • Includes Titanium native iOS module: ti.animation 2.0.0
  • Includes Titanium native Android module: ti.animation 3.0.0
  • Display Lottie animations

Library versions:

The Titanium modules use external libraries

Library Platform Version Build Date
Airbnb Lottie Android 2.6.1 2018/09/06
Airbnb Lottie iOS 2.5.2 2018/12/10

📚Learn More

📣 Feedback

Have an idea or a comment? Join in the conversation here!

Modules are licensed under Apache 2.0 from https://github.com/appcelerator-modules/titanium-lottie

Alloy is developed by Appcelerator and the community and is Copyright © 2012-Present by Appcelerator, Inc. All Rights Reserved.

Alloy is made available under the Apache Public License, version 2. See their license file for more information.

Appcelerator is a registered trademark of Appcelerator, Inc. Titanium is a registered trademark of Appcelerator, Inc. Please see the LEGAL information about using trademarks, privacy policy, terms of usage and other legal information at http://www.appcelerator.com/legal.