简体   繁体   English

react-native-reanimated react-native-screens 未打开反应本机应用程序

[英]react native Application doesn't open with react-native-reanimated react-native-screens installed

i am new to React-native and i have a simple project that i want to use Drawer navigation in it.我是 React-native 的新手,我有一个简单的项目,我想在其中使用抽屉导航
as described here i have to install react-navigation and its dependencies.如此处所述,我必须安装 react-navigation 及其依赖项。
in the react-navigation guide it says i have to installreact-navigation指南中说我必须安装
react-navigation react-native-gesture-handler react-native-reanimated react-native-screens react-navigation react-native-gesture-handler react-native-reanimated react-native-screens

my problem is, when i install react-navigation react-native-gesture-handler its all fine, how ever on running project it says i also need react-native-reanimated react-native-screens but when i install these 2 modules, my App doesn't open anymore, it just crashes in android emulator我的问题是,当我安装react-navigation react-native-gesture-handler一切都很好,但是在运行项目时它说我还需要react-native-reanimated react-native-screens但是当我安装这两个模块时,我的应用程序没有'不再打开,它只是在 android 仿真器中崩溃崩溃截图 i have tried everything i know, such as running npm i or npm audit fix我已经尝试了我所知道的一切,例如运行npm inpm 审计修复

i couldn't find any solution for this on internet.我在互联网上找不到任何解决方案。

your version<60,using below你的版本<60,使用下面

npm install react-native-gesture-handler@1.0.5
npm i react-native-reanimated
npm i react-navigation@3.11.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 react-native-reanimated 和 babel 的编译错误 - Compilation error with react-native-reanimated and babel react-native-screens: compileDebugKotlin 错误 - react-native-screens: compileDebugKotlin Error 如何聆听 react-native-reanimated 中的价值变化? - How to listen to value change in react-native-reanimated? 无法从 /projectFolder 中找到模块“react-native-reanimated/plugin” - Cannot find module 'react-native-reanimated/plugin' from /projectFolder 无法解析模块 react-native-reanimated/src/core/AnimatedEvent - Unable to resolve module react-native-reanimated/src/core/AnimatedEvent 错误:无法初始化 react-native-reanimated 库 - Error: Failed to initialize react-native-reanimated library 急速模块 map 中不存在模块“react-native-screens” - Module `react-native-screens` does not exist in the Haste module map React Native Reanimated 并行 - React Native Reanimated parallel 运行反应原生裸项目导致错误配置项目':react-native-reanimated'时出现问题 - Running react native bare project results in error A problem occurred configuring project ':react-native-reanimated' 如何在 react-navigation v4 中使用 react-native-screens? - How to use react-native-screens with react-navigation v4?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM