简体   繁体   中英

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.
as described here i have to install react-navigation and its dependencies.
in the react-navigation guide it says i have to install
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崩溃截图 i have tried everything i know, such as running npm i or npm audit fix

i couldn't find any solution for this on internet.

your version<60,using below

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM