How to fix a React Native version mismatch
Last updated
[runtime not ready]: console.error: React Native version mismatch.
JavaScript version: 0.80.2
Native version: 0.81.5
These were the opening lines on an iPhone simulator running Expo Go 54.0.7. The test project used Expo SDK 54 with react-native@0.80.2 installed. Metro sent that JavaScript to Expo Go, whose binary contained React Native 0.81.5. Both numbers were accurate. The fix was to change the package Metro bundled.
Which two versions disagree?
JavaScript version comes from the React Native code in the bundle the app loaded. Native version comes from React Native compiled into the app on the device. Both labels refer to react-native. The separate react package has its own version number.
From the directory where you start Metro, print the installed packages. The failing project showed these installed versions.
$ npm ls react-native expo --depth=0
mismatch-guide@1.0.0
├── expo@54.0.38
└── react-native@0.80.2
Compare the react-native@ value with the JavaScript line first. In this case they matched, so Metro was serving the version installed in the project. Next, npx expo install --check gives the version the SDK expects. For this SDK it was 0.81.5, the same value as the native line. That narrowed the repair to one dependency.
In a bare React Native app, use the intended version in your branch’s lockfile as the reference. For Yarn, run yarn why react-native. For pnpm, run pnpm why react-native. The version checker explains how to read package ranges and installed versions.
If the JavaScript version comes from another project
Reload the app and watch the terminal where you started Metro. If a different project’s terminal logs the bundle request, stop that server with Ctrl+C. Start Metro in the intended app directory with npx react-native start --reset-cache for a bare app or npx expo start --clear for Expo. Reconnect the device to that server and read the versions again.
If the right server receives the request but still bundles an unexpected version, run npm ls react-native --all from the app workspace. Look for two distinct versions and identify which dependency or Metro resolver setting points at the other copy. Repeated entries marked deduped refer to the same installation.
Fix a version mismatch in Expo Go
Expo Go ships its own native runtime. Use a client that supports the SDK installed in your project. In the reproduced case the client already supported SDK 54. After stopping Metro, we aligned the package with SDK 54 and started a fresh bundle.
npx expo install --fix
npm ls react-native --depth=0
npx expo start --go --clear
The install changed react-native from 0.80.2 to 0.81.5. Reopen the project in Expo Go. If Expo Go itself does not support your SDK, choose a compatible client for your device or build a development client for that SDK. Find an Expo Go build for your SDK and platform.
If the native version is old on iOS or Android
After a React Native upgrade, Metro can serve the intended JavaScript while the simulator or phone still runs yesterday’s binary. When the JavaScript line agrees with the lockfile and the native line is older, rebuild and install the app on the same device that showed the error.
- Bare iOS app. Sync CocoaPods with
bundle exec pod installinios/for a project using Bundler. Return to the app root and runnpx react-native run-ios. Select the simulator or device that reported the mismatch. - Bare Android app. Run
npx react-native run-androidfrom the app root with the affected emulator or device selected. Open the newly installed build. - Expo development build. Align packages with
npx expo install --fix, then rebuild withnpx expo run:iosornpx expo run:android. If you build with EAS, install the new development build and connect it tonpx expo start --dev-client.
Verify the fix on the device
Open the app again and trigger a full reload from the intended Metro server. To check the native value yourself, put this temporary log in a screen that opens on launch and read its output in React Native DevTools.
import { Platform } from 'react-native';
const { major, minor, patch } = Platform.constants.reactNativeVersion;
console.log(`Native React Native ${major}.${minor}.${patch}`);
Compare that output with npm ls react-native --depth=0 in the app directory. After the repair, the test project resolved react-native@0.81.5, the simulator reported native 0.81.5, and the screen loaded without the mismatch error. A Metro cache reset alone would have served 0.80.2 again.
Check all three numbers. The startup check in React Native 0.80.2 compares major and minor, so a patch difference can pass silently. If both versions agree but edits still fail to appear, continue with React Native not detecting changes.
Prefer to hand it off? See my React Native upgrade service.