0.2.4 • Published 3 years ago

react-native-lottie-sequence v0.2.4

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

react-native-lottie-sequence

✨A tiny package for stringing together Lottie animations, written in TypeScript ✨

NPM JavaScript Style Guide

Install

Yarn

yarn add react-native-lottie-sequence

NPM

npm install --save react-native-lottie-sequence

Usage

import React from 'react';

import LottieSequence from 'react-native-lottie-sequence';

import animation1 from './animation1.json';
import animation2 from './animation2.json';

const MyAnimationSequence = () => {
  return <LottieSequence sources={[animation1, animation2]} loopMode={'all'} />;
};

Props

prop namevaluesrequireddefaultdescription
sourcesArray of Lottie sourcesyes[]Sequence of source animations to play.
autoPlaytrue, falsenofalseWhether to auto-play each animation.
loopMode'none', 'last', 'all'no'none'What kind of sequence looping behaviour is wanted. 'none' plays the sequence once, 'last' loops the last animation in the sequence only, and 'all' loops the entire sequence.
onAnimationFinishfunctionno() => {}Callback fired at the end of each animation in the sequence.

License

MIT © tn12787

0.2.4

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago