Getting Started
Introduction
dotLottie-react-native is a React Native component that allows you to easily embed Lottie animations in your React Native applications. It provides native support for both iOS and Android platforms through @lottiefiles/dotlottie-ios and @lottiefiles/dotlottie-android.
Installation
Using npm
Using yarn
Additional Setup
iOS Setup
To support iOS 15.4, ensure your Podfile
specifies the platform version:
After installing the package, install the pods:
Metro Configuration
To support .lottie
files, update your metro.config.js
:
Expo Setup
If you’re using Expo, you need to prebuild to generate the ios
and android
folders: