Skip to content

ArcSolver/rn-0853-react-1926-renderer-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rn-0853-react-1926-renderer-repro

Build

This repository is based on the official React Native reproducer template.

It reproduces a package metadata/runtime contract mismatch in react-native@0.85.3:

  • react-native@0.85.3 declares peerDependencies.react = ^19.2.3, which permits react@19.2.6.
  • The embedded React Native renderer in react-native@0.85.3 checks for React.version === "19.2.3" at runtime.
  • Launching this app with react@19.2.6 should fail with the React/react-native-renderer exact-version mismatch.

Reproducer TODO list

  • 1. Create a new reproducer project.
  • 2. Git clone your repository locally.
  • 3. Edit the project to reproduce the failure you're seeing.
  • 4. Push your changes, so that Github Actions can run the CI.
  • 5. Make sure the repository is public and share the link with the issue you reported.

Reproduction

cd ReproducerApp
yarn install
yarn start
yarn ios

Expected runtime error:

Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version.
Instead got:
  - react:                  19.2.6
  - react-native-renderer:  19.2.3

Relevant package state

ReproducerApp/package.json intentionally uses:

{
  "react": "19.2.6",
  "react-native": "0.85.3"
}

This satisfies react-native@0.85.3's published peer range, but does not satisfy the renderer's runtime exact-version check.

How to use this Reproducer

This project has been created with npx @react-native-community/cli init and is a vanilla React Native app.

Important

Make sure you have completed the React Native - Environment Setup so that you have a working environment locally.

Start the Metro Server

To start Metro, run the following command from ReproducerApp:

yarn start

Start the Application

Let Metro Bundler run in its own terminal. Open a new terminal from ReproducerApp.

Android

yarn android

iOS

First, install CocoaPods dependencies:

cd ios && bundle install && bundle exec pod install

Then run:

yarn ios

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors