nandorojo / moti

đŸŒ The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
3.9k stars 120 forks source link

Expo SDK 49: Moti app crashing on iOS devices #333

Closed agrawal-rohit closed 5 months ago

agrawal-rohit commented 5 months ago

Is there an existing issue for this?

Do you want this issue prioritized?

Current Behavior

I have an Expo app that uses Moti, however, when testing the app on an iOS simulator through Expo Snack or when running it on a device using the Expo Go app. The crash doesn't occur on Android devices or when running the app on a local iOS simulator.

I'm not 100% sure if this is a Moti issue, it could be a bug related to Expo Go, but I'm open to any solutions or hacks if you've encountered this before. Thanks!

Expected Behavior

No response

Steps To Reproduce

No response

Versions

- Moti: 0.27
- Reanimated: ~3.3.0
- React Native: 0.72.6

Screenshots

No response

Reproduction

https://snack.expo.dev/@agrawal-rohit/moti-crash?platform=ios

nandorojo commented 5 months ago

Snack doesn’t work with moti, but expo go will.

agrawal-rohit commented 5 months ago

@nandorojo, is that expected behavior or an incompatibility issue with Snack and Moti? Also, when you say that Expo Go will work, do you mean only during development?

nandorojo commented 5 months ago

Moti works fine. But expo’s online snack editor has issues with libraries that use reanimated, which is why moti doesn’t work there.

it works fine in any actual app that isn’t on snack online

lsps9150414 commented 5 months ago

Hi @nandorojo , the installation mentioned Please follow Reanimated's installation instructions for v2. for Expo. Does reanimated v3 works? I'm running into this production only issue: #334

nandorojo commented 5 months ago

Yeah, though you should upgrade moti on that example

lsps9150414 commented 5 months ago

Yeah, though you should upgrade moti on that example

Hey @nandorojo which example are you referring to? If you are referring to my demo in the issue I raised, isn't 0.27.2 already the latest moti version?

334 is fixed by upgrading react-native-reanimated.