alantoa / expo-reanimated-av-player

A high-performance, interactive and customizable video player control, built upon Reanimated v2 & GestureHandler v2
MIT License
86 stars 12 forks source link

TypeError: null is not an object (evaluating 'safeGetViewManagerConfig('LottieAnimationView').Commands') #3

Closed abdullahceylan closed 2 years ago

abdullahceylan commented 2 years ago

After installing the package and use it as same as the example in the Readme, I'm getting the following error:

TypeError: null is not an object (evaluating 'safeGetViewManagerConfig('LottieAnimationView').Commands')

This error is located at:
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (at LottieView.js:178)
    in RCTView (created by View)
    in View (at LottieView.js:177)
    in LottieView (created by ExpoAvPlayer)
    in RCTView (created by View)
    in View (created by AnimatedComponent(View))
    in AnimatedComponent(View)
    in Unknown (created by ExpoAvPlayer)
    in RCTView (created by View)
    in View (created by AnimatedComponent(View))
    in AnimatedComponent(View)
    in Unknown
    in RCTView (created by View)
    in View
    in Unknown
    in RCTView (created by View)
    in View (created by AnimatedComponent(View))
    in AnimatedComponent(View)
    in Unknown (created by ExpoAvPlayer)
    in RCTView (created by View)
    in View (created by AnimatedComponent(View))
    in AnimatedComponent(View)
    in Unknown (created by ExpoAvPlayer)
    in Wrap (created by AnimatedComponent(Wrap))
    in AnimatedComponent(Wrap)
    in Unknown (created by GestureDetector)
    in GestureDetector (created by ExpoAvPlayer)
    in ExpoAvPlayer (created by DisplayVideoScreen)

According to the Lottie documentation, it is happening due to the non-linked Lottie. So do we need to link lottie-react-native manually? If so, can you please update the readme?

abdullahceylan commented 2 years ago

Installing lottie-react-native package and rebuilding the app solved the issue.

yarn add lottie-react-native

yarn android