Changed version of React dependency to ~

Summary:
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
This commit is contained in:
Konstantin Raev 2016-06-07 04:39:47 -07:00 committed by Facebook Github Bot 0
parent 46c3af9941
commit 592d5fb8f3
1 changed files with 2 additions and 2 deletions

View File

@ -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"
}
}