-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot call another worklet from worklet #136
Comments
Hey, just here to confirm that it's an incompatibility with Reanimated. I create a few test projects with and without expo, with and without Reanimated. It starts to fail as soon as the reanimated plugin is loaded in |
You're right - you can fix this if you enabled |
@mrousavy, i am still facing this issure currently. I'm not using
|
Did you enable processNestedWorklets in reanimated babel plugin? |
I did it in module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
['react-native-worklets-core/plugin'],
['react-native-reanimated/plugin', { processNestedWorklets: true }],
],
}; |
Calling an inlined worklet from an existing worklet breaks, presumably because of some mistake in the babel plugin.
This code breaks:
But when we lift out the nested worklet function outside from the existing worklet, it works:
I'm guessing this is an incompatibility with the Reanimated plugin again.
The text was updated successfully, but these errors were encountered: