6. My animation is rendered on an iOS device but not on an Android device
The newest versions of lottie-react-native
can only be used on AndroidX projects. This means that if your app hasn't been migrated to AndroidX (https://developer.android.com/jetpack/androidx), it won't be able to display any Lottie animations.
In this case, you can try older versions of lottie-react-native
. For example, try running the following:
yarn add lottie-react-native@3.0.2 yarn add lottie-ios@3.0.3
Take into account that for these cases, the API might be different or some extra installation steps might be required. Always check the version-specific documentation when using older versions of lottie-react-native
.