Skip to content

Commit 860aeb7

Browse files
abrahambotrosZack Story
authored andcommitted
(demo): Set more precise React/React-Native package version dependencies for Example (react-native-camera#679)
* Set more precise React/React-Native package version dependencies - In general, try to avoid breaking changes caused by >= - In particular, such a breaking change can be seen by testing the current Example app on Android with the existing package.json's and RN 0.43+, which causes errors in MainApplication public/protected method settings. * Revert changes to main package.json - Would erroneously break compatibility for main package - Leave precise dependencies only for Example app, since this does not impact compatibility in the same way
1 parent ae9eab3 commit 860aeb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"start": "node node_modules/react-native/local-cli/cli.js start"
77
},
88
"dependencies": {
9-
"react": ">=15.4.0",
10-
"react-native": ">=0.40",
9+
"react": "~15.4.0",
10+
"react-native": "~0.40.0",
1111
"react-native-camera": "file:../"
1212
}
1313
}

0 commit comments

Comments
 (0)