Another "React Native version mismatch" question

Hi,

I’ve inherited a project that hasn’t been updated in about two years, and am having a little trouble getting started. I opened a github issue but am maybe thinking this is the right place instead.

I installed the latest version of XCode, and when I try to launch the iOS simulator (from expo start ), I see the dreaded error

console.error: "React Native version mismatch.

JavaScript version: 0.55.4
Native version: 0.63.2-undefined

Make sure that you have rebuilt the native code. If the problem persists try clearing the Watchman and packager caches with `watchman watch-del-all && react-native start --reset-cache`."

I’m a little bit unclear on where these version numbers are coming from.

package.json contains, among other things, the following lines:

"dependencies": {
  ...
  "expo": "^28.0.1",
  ...
  "react-native": "^0.55.4",
  ...
}

I changed this from "react-native": "https://github.com/expo/react-native/archive/sdk-28.0.1.tar.gz" (and before that, it was "react-native": "https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz" ; nothing has worked so far).

Meanwhile, app.json specifies "sdkVersion": "28.0.0" .

expo diagnostics:

  Expo CLI 3.27.7 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.0.18 - /usr/local/bin/bash
    Binaries:
      Node: 12.18.4 - /usr/local/bin/node
      Yarn: 1.22.5 - /usr/local/bin/yarn
      npm: 6.14.6 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
      Android SDK:
        API Levels: 30
        Build Tools: 30.0.2
        System Images: android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 4.0 AI-193.6911.18.40.6626763
      Xcode: 12.0/12A7209 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^28.0.1 => 28.0.1 
      react: 16.3.1 => 16.3.1 
      react-dom: ^16.4.1 => 16.4.1 
      react-native: ^0.55.4 => 0.55.4 
      react-navigation: 2.17.0 => 2.17.0 
    npmGlobalPackages:
      expo-cli: 3.27.7
    Expo Workflow: managed

I believe version 28 specifies react-native version 0.55.4… so where is the newer “native version” of “0.63.2-undefined” coming from?

Answered here: Another "React Native version mismatch" question · Issue #10355 · expo/expo · GitHub (thank you!)

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.