lottie-react-native: Lottie not stable with Expo - Not auto playing, getting stuck - v5.0.1
Description
Lottie getting stuck or not playing at all. Sometimes works with no issues but unstable for no reason.
Steps to Reproduce
- Use this package with Expo v44.0.0
- Expo forces lottie package version to be v5.0.1 do to compatibility issues.
- Use any example of usage on iOS (haven’t tested on Android simulator)
Expected behavior: If auto play is enabled for the lottie to start on mount
Actual behavior: With some lottie json auto play works, sometimes with the same file it doesn’t. Some times only the first frame is shown, but doesn’t play
Versions
lottie package v5.0.1 (forced by expo).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 19
I fixed it for now by creating my own Animation component. That way, each animation has it’s own ref and I’ve not had any problems since. Here it is, if it helps anyone:
I have already tried this and it’s not stable sometimes. Also this is not an actual solution it’s very hacky. Appreciate your help though.
On Sun, Aug 21, 2022 at 6:26 AM Derek Stephen McLean < @.***> wrote: