Sequence not working since reanimated 2.3.0
See original GitHub issueSince reanimated 2.3.0 I was no longer able to use Moti sequence animations
I’m getting the error:
Exception in HostFunction: Javascript worklet error
For any sequence animation
<MotiView from={{scale: 1}} animate={{scale: [1, 1.5, 1, 1.5, 1]}}>
<Text>Test</Test>
</MotiView>
I tested updating reanimated to different versions (even the last one) without luck
While creating a minimal app to reproduce the issue I found that the problem seems to be with the Hermes Engine. If Hermes is turned off the sequences seem to work properly
@nandorojo I created a repo using react-native init to reproduce the issue on iOS (adding only reanimated, moti, and enabling Hermes)
https://github.com/msantang78/MotiSequenceReproduction
I also added an animation with reanimated sequences and they seem to be working fine.
I hope it helps
For reference: I originally reported this on #131, there were other reports #140 #183
Issue Analytics
- State:
- Created a year ago
- Comments:28 (19 by maintainers)
Top GitHub Comments
just merged @jstheoriginal’s PR, thanks for your patience here. will release it in the next version
this patch-package diff resolves the issue (extracted function and marked it as a worklet).