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.
react-native init TestLatestCode
View the generated package.json file
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? 🤔
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.
Is it correct but it breaks? (See the more than 100 issues opened with the 0.43 tag)
What are we missing?
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.
@ide you mean that maybe are the deps causing the issues?
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.
We're using yarn; hence freezed versions. I'll try to reinstall the lock
file and deps by hand tomorrow.
On Wed, Apr 12, 2017, 20:29 James Ide notifications@github.com wrote:
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.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/13291#issuecomment-293666780,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC-PYzFTcl8b3Y4aNfYnaWfZgaCVGlnuks5rvRgDgaJpZM4Myy7i
.>
http://twitter.com/sospedra_r https://www.linkedin.com/in/sospedra
Rubén Sospedra http://sospedra.me/
frontend developer
javascript hacker
Most helpful comment
Is it correct but it breaks? (See the more than 100 issues opened with the
0.43tag)What are we missing?