Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LottieAnimationView was not found in the UIManager - React Native

I'm trying to implement Lottie React Native into my app, but I've been having some issues. I followed the directions to install from: https://github.com/lottie-react-native/lottie-react-native

I've imported AnimatedLottieView and included it in my app. But I keep getting this error:

Invariant Violation: requireNativeComponent: "LottieAnimationView" was not found in the UIManager.

I'm running the app on a physical iPhone 14 Pro.

like image 469
Ever Nolasco Avatar asked Oct 27 '25 22:10

Ever Nolasco


2 Answers

When installing this lib, you need to recompile the app. If it's a react-native project, run:

$ yarn start and then $ yarn android or ios

like image 156
Gustavo Barbosa Avatar answered Oct 30 '25 13:10

Gustavo Barbosa


yarn add [email protected]

add this so it will working fine.

like image 32
Muhammad Komail Abbas Avatar answered Oct 30 '25 15:10

Muhammad Komail Abbas