diff --git a/Examples/CodePushDemoApp/package.json b/Examples/CodePushDemoApp/package.json index 432604c..19fc640 100644 --- a/Examples/CodePushDemoApp/package.json +++ b/Examples/CodePushDemoApp/package.json @@ -8,7 +8,7 @@ "dependencies": { "babel-preset-react-native-stage-0": "1.0.1", "react": "15.3.1", - "react-native": "0.34.1", + "react-native": "0.35.0", "react-native-code-push": "file:../../" } } diff --git a/README.md b/README.md index 90f82d2..0230ba5 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ We try our best to maintain backwards compatability of our plugin with previous | v0.19-v0.28 | v1.7.0+ *(introduced Android asset support)* | | v0.29-v0.30 | v1.13.0+ *(RN refactored native hosting code)* | | v0.31-v0.33 | v1.14.6+ *(RN refactored native hosting code)* | -| v0.34 | v1.15.0+ *(RN refactored native hosting code)* | -| v0.35+ | TBD :) We work hard to respond to new RN releases, but they do occasionally break us. We will update this chart with each RN release, so that users can check to see what our "official" support is. +| v0.34-v0.35 | v1.15.0+ *(RN refactored native hosting code)* | +| v0.36+ | TBD :) We work hard to respond to new RN releases, but they do occasionally break us. We will update this chart with each RN release, so that users can check to see what our "official" support is. ## Supported Components diff --git a/package-mixins.js b/package-mixins.js index 6b18e74..73700d2 100644 --- a/package-mixins.js +++ b/package-mixins.js @@ -41,7 +41,8 @@ module.exports = (NativeCodePush) => { const local = { async install(installMode = NativeCodePush.codePushInstallModeOnNextRestart, minimumBackgroundDuration = 0, updateInstalledCallback) { const localPackage = this; - await NativeCodePush.installUpdate(this, installMode, minimumBackgroundDuration); + const localPackageCopy = Object.assign({}, localPackage); // In dev mode, React Native deep freezes any object queued over the bridge + await NativeCodePush.installUpdate(localPackageCopy, installMode, minimumBackgroundDuration); updateInstalledCallback && updateInstalledCallback(); if (installMode == NativeCodePush.codePushInstallModeImmediate) { RestartManager.restartApp(false);