-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
reanimated workletInit is not a function #395
Comments
@LoganxDev sorry that you experienced this. The issue and workaround is described here software-mansion/react-native-reanimated#1423 |
Ah okay that got me past the error, thanks! |
Hi, I am having the exact same issue, but I cannot make that workaround work. Where I am supposed to put this function?
Thanks! |
@lcorniglione Another workaround is to use reanimated. this will import the real init function. |
@wcandillon
I wonder where the problem is. Is it reanimated-2 which is making problems, expo 2 or redash. I can't seem to find it and I spend hours on it. Any ideas? I am also happy for another workaround "expo": "^40.0.0", |
I might sound silly but this happens if you don't import the "react-native-reanimated" module. Because the reanimated plugin works but doesn't have access to the reanimated runtime. |
am getting the same error |
Any update on this? How to actually fix this issue? |
Thanks to this post, simply adding |
For me putting import for react-native-reanimated before import for redash solved the issue |
This works for me. software-mansion/react-native-reanimated#1380 (comment) |
This issue is happening on Web in v2.8.0. |
Did you manage to solve it? |
Yeah. Upgrade to the latest RNGH (2.4.1), the latest Reanimated, make sure you don’t have duplicate versions with |
@nandorojo I'm still having the same issue on web even after your suggested fix. Any ideas? |
Start metro with cache reset This helped me solve the problem |
@nandorojo and for those of you running into the problem v2.8.0 on web, I was able to resolve the issue by adding |
Thanks @Gamma169 this worked for me. Did you find a longer-term solution since posting this workaround? |
@wrsulliv, are you familiar with patch-package? I created a patch file to automatically add the line when I run |
@Gamma169 can I see the patch? anything we could add to redash? |
Thanks @Gamma169 I ended up doing the same. I documented is here if it helps @wcandillon : software-mansion/react-native-reanimated#3111 (comment) |
@wrsulliv Thank you for following up on this. With Reanimated on web, I am not experiencing the issue. Let me know if there are any changes you would like me to add to this package. By looking at the issue you linked on github it wasn't obvious what I should do. |
It worked for me. Edit: |
Trying to follow along with the gestures tutorial to create a draggable view and I get the following error when trying to use the
usePanGestureHandler
hook.TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletInit(_f)', 'global.__reanimatedWorkletInit' is undefined)
I see there's an issue in reanimated related to this, do I need to downgrade?
Package versions are:
The text was updated successfully, but these errors were encountered: