首页 > 解决方案 > 反应本机中的 TurboModuleRegistry.getEnforcing(...) 错误

问题描述

每当我尝试使用抽屉导航时,我都会发现这个错误

    Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' could not be found. Verify that a module by this name is registered in the native binary.
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

但是这个包安装在我的项目中这是我的 package.json 文件

"react": "16.13.1",
"react-native": "0.63.4",
"react-native-bootsplash": "^3.1.5",
"react-native-gesture-handler": "^1.10.3",
"react-native-reanimated": "^2.0.0",
"react-native-recaptcha-v3": "^0.0.16",
"react-native-safe-area-context": "^3.2.0",

标签: react-nativereact-native-androidreact-native-navigationreact-native-reanimated-v2

解决方案


推荐阅读