[英]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 install在react-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 i或npm 审计修复
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.