CR feedback

This commit is contained in:
Geoffrey Goh
2016-08-01 16:25:03 -07:00
parent 6fa99e1094
commit f0379ffb3e

View File

@@ -430,7 +430,7 @@ function codePushify(options = {}) {
let rootComponentInstance = this.refs.rootComponent;
let syncStatusCallback = rootComponentInstance && rootComponentInstance.codePushStatusDidChange;
let downloadProgressCallback = rootComponentInstance && rootComponentInstance.codePushDownloadDidProgress;
CodePush.sync(options, syncStatusCallback, downloadProgressCallback)
CodePush.sync(options, syncStatusCallback, downloadProgressCallback);
if (options.checkFrequency === CodePush.CheckFrequency.ON_APP_RESUME) {
ReactNative.AppState.addEventListener("change", (newState) => {
newState === "active" && CodePush.sync(options, syncStatusCallback, downloadProgressCallback);