Hello guys, 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
Expo: 2.1.2.1010988
react-native-cli: 2.0.1
react-native: 0.51.0
Any idea how to fix this?
Thanks!
Hi, if you are using Expo, then you should be using Expo's fork of React Native and using the SDK version corresponding to that version of React Native. The sdkVersion field of app.json will tell Expo what version of the RN native code to target. See this table. (looks like we still need to add SDK 24 there - check the release notes if you're using SDK 24).
Let me know if you're still having trouble after you ensure that sdkVersion and react-native are pointing to the right versions. Hope this helps!
Most helpful comment
Hi, if you are using Expo, then you should be using Expo's fork of React Native and using the SDK version corresponding to that version of React Native. The
sdkVersionfield ofapp.jsonwill tell Expo what version of the RN native code to target. See this table. (looks like we still need to add SDK 24 there - check the release notes if you're using SDK 24).Let me know if you're still having trouble after you ensure that
sdkVersionandreact-nativeare pointing to the right versions. Hope this helps!