Reputation: 645
Getting this error when adding react-navigation-drawer to my expo project, any idea how to fix this?
Upvotes: 21
Views: 12685
Reputation: 51
It's because some of your installed packages are not matched with current version of Expo
In your terminal you will see a warning like
To solve this issue you have to update all the packages according to the current expo version by running this command
expo install packageName@packageVersion // expo install [email protected]
Upvotes: 0
Reputation: 304
Close your IDE. Restart your computer.
Open your project, re-install you package (npm install).
re-run your project (react-native run-android)
Upvotes: 0
Reputation: 73
It is library version issue. Don't use 'yarn add react-native-gesture-handler react-native-reanimated' It will add [email protected] [email protected]
Use 'expo install react-native-gesture-handler react-native-reanimated' It will add react-native-gesture-handler@~1.6.0 react-native-reanimated@~1.9.0
Upvotes: 4
Reputation: 4201
Faced this error few days back, I was able to fix it by running:
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
Upvotes: 26