user13142973
user13142973

Reputation: 645

React Native Getting this error 'Unrecognized operator abs'

enter image description here

Getting this error when adding react-navigation-drawer to my expo project, any idea how to fix this?

Upvotes: 21

Views: 12685

Answers (4)

ibrahim_Ramzan
ibrahim_Ramzan

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

  • expo-av - expected version range: ~8.2.1 - actual version installed: ~8.7.0
  • expo-constants - expected version range: ~9.1.1 - actual version installed: ~9.3.3

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

Pranay
Pranay

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

FerntreeGuy
FerntreeGuy

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

Goskula Jayachandra
Goskula Jayachandra

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

Related Questions