mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
CR feedback
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user