Runtime crash if easing is used within useAnimationState, error: '[Reanimated] The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.' #348
Hey Fernando,
thanks for your awesome work.
I noticed a crash after updating RN, expo, reanimated und moti.
The app is crashing the error '[Reanimated] The easing function is not a worklet. Please make sure you importEasingfrom react-native-reanimated.'
This is triggered by a transitionTo() call from useAnimationState().
Is there an existing issue for this?
Do you want this issue prioritized?
Current Behavior
Hey Fernando, thanks for your awesome work. I noticed a crash after updating RN, expo, reanimated und moti. The app is crashing the error
'[Reanimated] The easing function is not a worklet. Please make sure you import
Easingfrom react-native-reanimated.'
This is triggered by a transitionTo() call from useAnimationState().Its failing because of reanimated runtime validations created in (src/reanimated2/animation/util.ts) PR: https://github.com/software-mansion/react-native-reanimated/pull/5639 and released with reanimated 3.9.0 .
Expected Behavior
To pass the easing runtime validation from reanimated
Steps To Reproduce
Minimal Reproduction:
Versions
Screenshots
No response
Reproduction
The Error happens only on bare RN projects and on the moti/examples/sample expo project. Could not reproduce it on Snack.
Removing the node_modules/react-native-reanimated/src/reanimated2/animation/util.ts