Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lottie-react-native

Package Overview
Dependencies
Maintainers
9
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lottie-react-native

React Native bindings for Lottie

  • 7.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
393K
increased by6.58%
Maintainers
9
Weekly downloads
 
Created

What is lottie-react-native?

lottie-react-native is a library that allows you to render animations created in Adobe After Effects and exported as JSON with Bodymovin. It provides a simple way to add high-quality animations to your React Native applications.

What are lottie-react-native's main functionalities?

Basic Animation

This feature allows you to render a basic animation in your React Native application. The animation will automatically play and loop.

import LottieView from 'lottie-react-native';

<LottieView source={require('./animation.json')} autoPlay loop />

Controlled Animation

This feature allows you to control the animation programmatically. You can start, stop, and manipulate the animation using the component's methods.

import LottieView from 'lottie-react-native';

class ControlledAnimation extends React.Component {
  componentDidMount() {
    this.animation.play();
  }

  render() {
    return <LottieView ref={animation => { this.animation = animation; }} source={require('./animation.json')} />;
  }
}

Animation with Progress

This feature allows you to control the progress of the animation. You can bind the progress to a state variable and update it to control the animation's progress.

import LottieView from 'lottie-react-native';

<LottieView source={require('./animation.json')} progress={this.state.progress} />

Other packages similar to lottie-react-native

Keywords

FAQs

Package last updated on 01 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc