From 860aeb761a66edb3ad6af71b5dc500d847eced02 Mon Sep 17 00:00:00 2001 From: Abe Botros Date: Mon, 24 Apr 2017 09:55:54 -0700 Subject: [PATCH] (demo): Set more precise React/React-Native package version dependencies for Example (#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 --- Example/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Example/package.json b/Example/package.json index 07ab891..ccd4f32 100644 --- a/Example/package.json +++ b/Example/package.json @@ -6,8 +6,8 @@ "start": "node node_modules/react-native/local-cli/cli.js start" }, "dependencies": { - "react": ">=15.4.0", - "react-native": ">=0.40", + "react": "~15.4.0", + "react-native": "~0.40.0", "react-native-camera": "file:../" } }