2

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

React Native version Mismatch
JavaScript version: 0.51.0
Native version: 0.50.3

Any idea how to fix this?

Thanks!

5
  • Similar question here I think.. stackoverflow.com/questions/47763824/… Commented Dec 18, 2017 at 4:53
  • 1
    Possible duplicate of React Native Version Mismatch Commented Dec 18, 2017 at 4:55
  • You shouldn't be updating RN directly but wait for when expo releases a new SDK. Commented Dec 18, 2017 at 12:57
  • @EdgarAroutiounian good to know, and now i'm asking what's the "Javascript version" ?? Commented Dec 18, 2017 at 14:00
  • What does JavaScript version mean? The React library ? Recommend you look at bottom of this post, blog.expo.io/expo-sdk-v24-0-0-is-now-available-bfcac3b50d51 as always, look at documentation before reaching for SO. Commented Dec 18, 2017 at 14:14

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.