1

I'm getting into React Native, and right now I got an error that I can't fix, after update RN, this is what I got while I'm using Expo:

Rect Native version Mismatch
JavaScript version: 0.51.0
Native version: 0.50.3

Any idea how to fix this?

Thanks!

Asinox
  • 6,747
  • 14
  • 61
  • 89
  • Similar question here I think.. https://stackoverflow.com/questions/47763824/react-native-version-mismatch – DennisFrea Dec 18 '17 at 04:53
  • 1
    Possible duplicate of [React Native Version Mismatch](https://stackoverflow.com/questions/47763824/react-native-version-mismatch) – Andrew Li Dec 18 '17 at 04:55
  • You shouldn't be updating RN directly but wait for when expo releases a new SDK. –  Dec 18 '17 at 12:57
  • @EdgarAroutiounian good to know, and now i'm asking what's the "Javascript version" ?? – Asinox Dec 18 '17 at 14:00
  • What does JavaScript version mean? The React library ? Recommend you look at bottom of this post, https://blog.expo.io/expo-sdk-v24-0-0-is-now-available-bfcac3b50d51 as always, look at documentation before reaching for SO. –  Dec 18 '17 at 14:14

1 Answers1

1

In your build.gradle file add the following:

implementation ("com.facebook.react:react-native:0.51.0") {
    force = true;
}

and replace 0.51.0 with the version in your package.json

Michael
  • 3,093
  • 7
  • 39
  • 83
Dishant Chanchad
  • 710
  • 3
  • 9
  • 27