Lottie Max

Integration · Mobile

How to use Lottie in React Native

lottie-react-native is the official wrapper for apps. Bundle your exported .json and render it with <LottieView>.

Design and animate in the Lottie Max studio, export .json or .lottie, then drop it into your app
Design and animate in the Lottie Max studio, export .json or .lottie, then drop it into your app

Install

Add the player package lottie-react-native.

Terminal
npm install lottie-react-native

Add the animation

  1. 1 Export your animation as .json from Lottie Max.
  2. 2 Install lottie-react-native (run pod install for iOS).
  3. 3 Bundle the file with source={require("./animation.json")}.
  4. 4 Use autoPlay, loop, and a style with explicit dimensions.
Splash.jsx
import LottieView from "lottie-react-native";

export default function Splash() {
  return (
    <LottieView
      source={require("./animation.json")}
      autoPlay loop
      style={{ width: 200, height: 200 }}
    />
  );
}

Tips

Need an animation first?

Design and export one in the studio — free, in your browser.

Open the studio

FAQ

Is Lottie Max free to use with React Native?
Yes. Lottie Max is free and runs in your browser — make the animation, export it, and drop it into your project.
What file should I export for React Native?
A Lottie .json works everywhere. For a smaller file, export .lottie (dotLottie, ~3× smaller) where the player supports it.
Where do I get the animation file?
Create it in the Lottie Max studio, then use Export to download .json / .lottie or copy a ready-to-paste embed snippet.

Using a different stack?