Skip to content
Browse files

Changed version of React dependency to ~

React has some internal code related only to React Native.
Some times React needs to update them which will result in a breaking change for React Native but it would not be a breaking change for React public API, so no major version bump will happen.
It means that a non breaking API bump may result in a break for React Native.
That is why React Native should not depend on a ^ of React version.

However React is a peer dependency to React Native and we want to give some flexibility to users to update React independently, so we don't fix the version strict and use ~ to allow patches.

This will be fixed once we extract RN specific code from React into an independent dependency.

Reviewed By: avaly

Differential Revision: D3398202

fbshipit-source-id: cca520f4b80c9ed5ae6fb1444f3d0bf7ffb9c9dd
  • Loading branch information...
bestander authored and Facebook Github Bot 0 committed Jun 7, 2016
1 parent 46c3af9 commit 592d5fb8f37fd9a250554cd1485bf477a262b19e
Showing with 2 additions and 2 deletions.
  1. +2 −2 package.json
@@ -125,7 +125,7 @@
"react-native": "local-cli/wrong-react-native.js"
"peerDependencies": {
"react": "^15.1.0"
"react": "~15.1.0"
"dependencies": {
"absolute-path": "^0.0.0",
@@ -201,7 +201,7 @@
"flow-bin": "^0.26.0",
"jest": "12.1.1",
"portfinder": "0.4.0",
"react": "^15.1.0",
"react": "~15.1.0",
"shelljs": "0.6.0"

0 comments on commit 592d5fb

Please sign in to comment.
You can’t perform that action at this time.