Expo

Get Started
API Reference

Lottie

Expo includes support for Lottie, the animation library from AirBnB.

Platform Compatibility

Android DeviceAndroid EmulatoriOS DeviceiOS SimulatorWeb

Installation

expo install lottie-react-native

If you're installing this in a bare React Native app, you should also follow these additional installation instructions.

You can import it like this:
import LottieView from 'lottie-react-native';

The Lottie SDK is currently considered to be under Expo's "DangerZone" because it's implementation is still in Alpha.
  • Importing Lottie 3 files causes the previewer to crash without a visible error, because Expo relies on lottie-react-native v2.

We pull in the API from lottie-react-native, so the documentation there is the best resource to follow.