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

React-native 0.43 depends on React 16.0.0-alpha.6 #13291

Closed
AlanFoster opened this issue Apr 4, 2017 · 6 comments
Closed

React-native 0.43 depends on React 16.0.0-alpha.6 #13291

AlanFoster opened this issue Apr 4, 2017 · 6 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@AlanFoster
Copy link
Contributor

AlanFoster commented Apr 4, 2017

Description

After running

react-native init TestLatestCode

React native creates the following dependencies within the package.json file

	"dependencies": {
		"react": "16.0.0-alpha.6",
		"react-native": "0.43.0"
	},

I would have expected a dependency on a stable release of React, instead an alpha version is currently being used.

Reproduction Steps and Sample Code

react-native init TestLatestCode

View the generated package.json file

Solution

Clarify if this react alpha dependency is safe to use in production currently. It currently seems counter intuitive to have stable release of react-native code depend on an alpha release of react.

If it is not stable, presumably this dependency will need to be downgraded? 🤔

Additional Information

  • React Native version: 0.43
@ide
Copy link
Contributor

ide commented Apr 4, 2017

This is intentional because the React Native releases follow the copy of RN in Facebook's repo, which also sometimes uses alpha versions of React. It is correct to depend on React 16 alpha 6.

@sospedra
Copy link

Is it correct but it breaks? (See the more than 100 issues opened with the 0.43 tag)
What are we missing?

@ide
Copy link
Contributor

ide commented Apr 12, 2017

This is the final release and won't change until React Native 0.45 or 0.46. There are breaking changes between React 15 and 16, but React Native + React aren't broken.

@sospedra
Copy link

@ide you mean that maybe are the deps causing the issues?

@ide
Copy link
Contributor

ide commented Apr 12, 2017

It could be, in my experience new RN projects work fine as well as projects that have updated all their code + deps to work with RN 0.43 + React 16a6.

@sospedra
Copy link

sospedra commented Apr 12, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants