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

Why does RN 0.43 use React 16.0.0-alpha #13469

Closed
xareelee opened this issue Apr 12, 2017 · 7 comments
Closed

Why does RN 0.43 use React 16.0.0-alpha #13469

xareelee opened this issue Apr 12, 2017 · 7 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@xareelee
Copy link

xareelee commented Apr 12, 2017

I did not find docs about this question.

The latest stable version of React is 15.5.0. I did not find any docs about React 16.0.0-alpha. What are the major changes?

I have many libs depending on React 15.x. May I use React 15.5.0 instead of 16.0.0-alpha with RN 0.43.x?

@mobinni
Copy link

mobinni commented Apr 12, 2017

I believe this was answered in #13291

@CodeXtinction
Copy link

yes -_-

react-native-svg@5.1.7 requires a peer of react@>=15.4.0 but none was installed.

@ide
Copy link
Contributor

ide commented Apr 12, 2017

This is intentional because React Native is released on a monthly cycle and uses the code from Facebook's trunk, which was using React 16 alpha 6 at the time of creating the release branch.

I have many libs depending on React 15.x. May I use React 15.5.0 instead of 16.0.0-alpha with RN 0.43.x?

No, RN 0.43 works only with React 16.0.0-alpha.6. Use that precise version.

react-native-svg@5.1.7 requires a peer of react@>=15.4.0 but none was installed.

This is a nonsensical warning from npm/yarn. There's an issue open on the Yarn repo to improve these warnings (16.0.0-alpha.6 does potentially satisfy >=15.4.0 according to the semver document, it's just that the node-semver library that chooses not to).

@ide ide closed this as completed Apr 12, 2017
@bensampaio
Copy link

bensampaio commented Apr 13, 2017

This doesn't make any sense... Why release stable versions dependent on alpha versions? Either release React 16.0.0 or stick to 15.x I would say.

@kesha-antonov
Copy link
Contributor

I agree with @bensampaio .
Few libraries do not use react alpha for now so I cannot update RN.

@xareelee
Copy link
Author

The problem is that many libs depending on React are not going to update the React dependency to 16.0.0-alpha.

This will raise some errors when testing. See storybookjs/storybook#893.

Please try to convince other open-source developers to update the React dependency by adding more docs.

@mleduque
Copy link

enzymejs/enzyme#928 (comment)

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
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

8 participants