小编toe*_*ema的帖子

类型错误:global.__reanimatedWorkletInit 不是函数。(在“global.__reanimatedWorkletInit(_f)”中,“global.__reanimatedWorkletInit”未定义)

TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletInit(_f)', 'global.__reanimatedWorkletInit' is undefined)
Run Code Online (Sandbox Code Playgroud)

我正在使用 React Native(不是 Expo),而且我什至没有重新下载。我下载了它,然后删除了它并重建了应用程序,现在它给了我这个错误。

我尝试过的事情:

  • 删除node_modules并重新运行yarn install
  • git reset HEAD~到之前的提交,我没有安装重新启动的软件包

react-native react-native-reanimated react-native-reanimated-v2

10
推荐指数
2
解决办法
1万
查看次数