Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 36cc292

Browse files
authored
Update README.md
1 parent 53a6071 commit 36cc292

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ If you would like your app to discover updates more quickly, you can also choose
467467
If you are using the `codePushify` decorator function:
468468

469469
```javascript
470-
let codePushOptions = { syncMode: codePush.SyncMode.ON_APP_START };
470+
let codePushOptions = { syncMode: codePush.SyncMode.ON_APP_RESUME };
471471
472472
@codePushify(CodePushOptions)
473473
class MyApp extends Component {
@@ -814,6 +814,8 @@ This decorator provides support for letting you customize its behaviour to easil
814814
4. **Log/display progress**. While the app is syncing with the server for updates, make use of the `codePushStatusDidChange` and/or `codePushDownloadDidProgress` event hooks to log down the different stages of this process, or even display a progress bar to the user.
815815
816816
```javascript
817+
// Make use of the event hooks to keep track of
818+
// the different stages of the sync process.
817819
@codePushify()
818820
class MyApp extends Component {
819821
codePushStatusDidChange(status) {

0 commit comments

Comments
 (0)