Skip to content

Commit

Permalink
Rename callbacks to be consistent with CodePush docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Sep 21, 2016
1 parent 1d04a02 commit 6030a39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
```
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 6030a39

Please sign in to comment.