reanimated workletInit is not a function
See original GitHub issueTrying 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:
"react-native-reanimated": "^2.0.0-alpha.9.1",
"react-native-redash": "^15.11.1"
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (5 by maintainers)
Top Results From Across the Web
TypeError: global.__reanimatedWorkletInit is not a function. (In ...
I am using React Native (not expo). I don't even have reanimated downloaded. I had it downloaded then I removed it and rebuilt...
Read more >r.g.__reanimatedWorkletInit is not a function in expo snack
react native reanimated error r.g.__reanimatedWorkletInit is not a function. My apps is correctly working on my laptop. I am using VScode editor ...
Read more >runOnJS | React Native Reanimated - Software Mansion
runOnJS. When you call a function on the UI thread you can't be sure if you're calling a worklet or a callback from...
Read more >typeerror: _reanimatedmodule.default.configureprops is not a ...
configureProps is not a function. (In '_ReanimatedModule.default.configureProps(Object.keys(NATIVE_THREAD_PROPS_WHITELIST), ...
Read more >[Solved]-react-native-reanimated 2: cannot make a function ...
Coding example for the question react-native-reanimated 2: cannot make a function with 'worklet' keyword (undefined is not a function)-React Native.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks to this post, simply adding
import 'react-native-reanimated';
on top of the file solved my issue.This issue is happening on Web in v2.8.0.