Home > Enterprise >  TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletIni
TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletIni

Time:01-19

TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletInit(_f)', 'global.__reanimatedWorkletInit' is undefined)

I am using React Native (not expo). I don't even have reanimated downloaded. I had it downloaded then I removed it and rebuilt the app, and it's giving me this error now.

Things I've tried: -deleting node_modules and re-running yarn install -git reset HEAD~ to a prev commit where I didn't install the reanimated2 packages

CodePudding user response:

Ok, what I ended up doing to solve this was:

-just deleted the whole repo from my local
-cloned it again from github
-uninstalled the app from Android emulator

Then it seemed to work. So maybe it was an error related to cache or something lingering around even after I had removed all instances of the word/package "reanimated" from the whole codebase.

CodePudding user response:

i just npx react-native run-android then npm start -- --reset-cache and it solved

  •  Tags:  
  • Related