Skip to content

Incompatible React versions: The "react" and "react-native-renderer" #1834

@pawel3ala

Description

@pawel3ala

Describe the bug

There is a fairly new vulnerability on React 19.1.0

Suggested solution is to bump up React from 19.0.1 to 19.1.2

and that's exactly what I did.

At the moment, when I run npm run test all my component tests fail due to:

    Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:
      - react:                  19.1.2
      - react-native-renderer:  19.1.0
    Learn more: https://react.dev/warnings/version-mismatch

Steps to Reproduce

Just run any unit test

Screenshots

Versions

  npmPackages:
    @testing-library/react-native: ^13.3.3 => 13.3.3 
    react: 19.1.2 => 19.1.2 
    react-native: ^0.81.3 => 0.81.5 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions