nandorojo / moti

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

fix: sequences work again on reanimated 2.3+ #198

Closed jstheoriginal closed 2 years ago

jstheoriginal commented 2 years ago

See: https://github.com/nandorojo/moti/issues/195

TL;DR: The getSequenceArray incline function isn't automatically workletized by reanimated 2.3+, which caused crashes/freezing when using a sequence on iOS and Android on anything over reanimated 2.2.4.

The fix just involves moving it out to the file level, adding 'worklet', and passing in any needed params.

Closes https://github.com/nandorojo/moti/issues/195

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
moti ❌ Failed (Inspect) May 19, 2022 at 8:22PM (UTC)