Skip to content

react-native-git-upgrade always downgrade react dependency to 16.0.0-alpha.12 #15926

@pocesar

Description

@pocesar

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  1. react-native -v: 0.48.2
  2. node -v: 8.4.0
  3. npm -v: 4.6.1

Then, specify:

  • Target Platform: Android
  • Development Operating System: Windows 10 x64

Steps to Reproduce

  1. react-native-git-upgrade on a project with react@16.0.0-beta.5 or greater

Expected Behavior

Keep current version that matches fresh react-native init, that is 16.0.0-beta.5

Actual Behavior

It will try to install 16.0.0-alpha.12, whatever the version of react already installed. this leads to inconsistencies and problems like #14209 since different tools might have different versions installed (like react-test-renderer)

Reproducible Demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions