diff --git a/README.md b/README.md index 6dd9082..3ad422c 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ yield spawn(codePushSaga, { // You can find a list of status types at // https://github.com/Microsoft/react-native-code-push#syncstatus. yield spawn(codePushSaga, { - statusDidChangeCallback: this.onSyncStatusChange, - downloadDidProgressCallback: this.onSyncDownloadProgress, + codePushStatusDidChange: this.codePushStatusDidChange, + codePushDownloadDidProgress: this.codePushDownloadDidProgress, }); ``` diff --git a/index.js b/index.js index 9103581..1501a96 100644 --- a/index.js +++ b/index.js @@ -81,7 +81,7 @@ export default function* codePushSaga(options = {}) { // off the "event loop". if (options.syncOnStart) { try { - yield call(sync, options.syncOptions, options.statusDidChangeCallback, options.downloadDidProgressCallback); + yield call(sync, options.syncOptions, options.codePushStatusDidChange, options.codePushDownloadDidProgress); } catch (e) { console.log(e); } @@ -107,7 +107,7 @@ export default function* codePushSaga(options = {}) { // to watch for any of the requested sync points. while (yield race(syncEvents)) { try { - yield call(sync, options.syncOptions, options.statusDidChangeCallback, options.downloadDidProgressCallback); + yield call(sync, options.syncOptions, options.codePushStatusDidChange, options.codePushDownloadDidProgress); } catch (e) { console.log(e); }