无法读取未定义的属性“installCoreFunctions”

Man*_*ari 12 ios swift react-native

我正在尝试将 Reanimated 2.0 集成到 iOS React Native swift 项目中并收到以下错误。Android 应用程序工作正常,但无法解决 iOS 问题。

https://docs.swmansion.com/react-native-reanimated/docs/

Error: Requiring module "node_modules/react-native-reanimated/src/Animated.js", which threw an exception: TypeError: Cannot read property 'installCoreFunctions' of undefined, js engine: hermes

包装信息:

“反应”:“17.0.2”,

“反应本机”:“0.67.0”,

“react-native-reanimated”:“2.3.1”

Hermes 已启用。

Babel 插件已设置为复活

完成多次node_module清除和缓存重置。

Dig*_*Cat 2

你还没有完成插件配置,在这种情况下它看起来像 BABEL 问题

请阅读=> https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation

确保您已完成所有操作,如果您已完成所有操作但仍然无法正常工作,请尝试

节点管理:

npm start --reset-cache

Run Code Online (Sandbox Code Playgroud)

纱:

yarn start --reset-cache
Run Code Online (Sandbox Code Playgroud)

如果仍然...则删除“node_modules”并通过“yarn”或“npm”重新下载它们(如果您在Mac上并进行ios开发,则必须“cd ios && pod install”)

rm -rf node_modules
Run Code Online (Sandbox Code Playgroud)