question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:43
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
idecommented, 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.

13reactions
sospedracommented, Apr 10, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native 0.43 upgrade: react@16.0.0-alpha.6 does not ...
When I try to upgrade my react to @16.0.0-alpha.6, I get the following error: $ npm install --save react@16.0.0-alpha.6 npm ERR!
Read more >
Upgrading from 3.x - React Navigation
Installing dependencies into a bare React Native project​. In your project directory, run npm install react-native-reanimated react-native-gesture-handler react ...
Read more >
Expo SDK v16.0.0 is now available | by Brent Vatne | Exposition
React 16 alpha, peerDependencies, and ecosystem compatibility. React Native 0.43 depends on React 16 alpha. Don't let the alpha qualifier scare you too...
Read more >
react-native-list - npm
Currently, React-Native@0.43 depends on React@16.0.0-alpha6 which isn't yet supported by many libraries like Enzyme etc.
Read more >
Versions · React Native
React Native versions. Open source React Native releases follow a release train that is coordinated on GitHub through the react-native-releases repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found