Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install stable version of react #306

Closed
Pyrolistical opened this issue Jul 13, 2017 · 1 comment
Closed

Unable to install stable version of react #306

Pyrolistical opened this issue Jul 13, 2017 · 1 comment

Comments

@Pyrolistical
Copy link

Pyrolistical commented Jul 13, 2017

Description

Currently create-react-native-app@0.0.6 installs react-native@0.45.x and react@16.0.0-alpha.12

I want to be able to choose a stable version. I tried manually reverting back to react-native@0.42.x but I got a bunch of errors. I'm sure its possible, but the point is its not easy right now.

Expected Behavior

Non alpha version of create-react-native-app should create a project that does not depend on alpha software

Observed Behavior

create-react-native-app@0.0.6 installs react@16.0.0-alpha.12

@Pyrolistical Pyrolistical changed the title Unable to install non-alpha version of react Unable to install stable version of react Jul 13, 2017
@brentvatne
Copy link
Member

screen shot 2017-07-17 at 12 20 37 pm

facebook/react-native#14496

To verify, go to facebook.com, open your console and type require('React').version.

As for why you get peerDependency warnings, this is because according to npm, React 16.0.0-alpha.x is not >= 15.3.1 (I strongly believe that it should be -- see this issue on the npm repository for more information). Accordingly, we have to see these warnings every time we install something until we move off of React 16 alpha. Yarn is a bit more intelligent (imo) about this, and will not show peerDependency errors in this situation.

As for why you can't just install any arbitrary React Native version, this is because there are several dependencies that you need to change to make this work. You'll need to change the 1) react-native version, of course 2) react version 3) expo version (see compat table) 4) the expo sdkVersion in app.json.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants