TurboModuleRegistry.getEnforcing(...) 反应原生错误

问题描述 投票:0回答:1

每当我尝试使用抽屉导航时,我都会遇到此错误

    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-native react-native-navigation react-native-reanimated-v2
1个回答
0
投票

我有 RNDocument Picker,以下对我有用:

删除软件包以开始:npm删除react-native-document-picker安装版本8.0.0

$ npm install [email protected]

您也可以尝试:

$ npx react-native-asset react-native-document-picker

如果出现错误提示“未找到react-natiuve.config.js”,请在根文件夹中创建一个具有该名称的新文件并添加以下内容:

module.Exports = { project: {ios: {},android: {},},assets: ['./src/assets/fonts/'], // path of your assert file};

然后

npm start -- --reset-cache

© www.soinside.com 2019 - 2024. All rights reserved.