mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 23:59:42 +08:00
fix bolding
This commit is contained in:
@@ -554,7 +554,7 @@ This method returns a `Promise` which is resolved to a `SyncStatus` code that in
|
||||
|
||||
* __codePush.SyncStatus.UPDATE_INSTALLED__ *(6)* - The update has been installed and will be run either immediately after the `syncStatusChangedCallback` function returns or the next time the app resumes/restarts, depending on the `InstallMode` specified in `SyncOptions`.
|
||||
|
||||
* __codePush.SyncStatus.SYNC_IN_PROGRESS *(7)* - There is an ongoing `sync` operation running which prevents the current call from being executed.
|
||||
* __codePush.SyncStatus.SYNC_IN_PROGRESS__ *(7)* - There is an ongoing `sync` operation running which prevents the current call from being executed.
|
||||
|
||||
The `sync` method can be called anywhere you'd like to check for an update. That could be in the `componentWillMount` lifecycle event of your root component, the onPress handler of a `<TouchableHighlight>` component, in the callback of a periodic timer, or whatever else makes sense for your needs. Just like the `checkForUpdate` method, it will perform the network request to check for an update in the background, so it won't impact your UI thread and/or JavaScript thread's responsiveness.
|
||||
|
||||
@@ -622,7 +622,7 @@ This enum is provided to the `syncStatusChangedCallback` function that can be pa
|
||||
* __codePush.SyncStatus.UP_TO_DATE__ *(4)* - The app is fully up-to-date with the configured deployment.
|
||||
* __codePush.SyncStatus.UPDATE_IGNORED__ *(5)* - The app has an optional update, which the end user chose to ignore. (This is only applicable when the `updateDialog` is used)
|
||||
* __codePush.SyncStatus.UPDATE_INSTALLED__ *(6)* - An available update has been installed and will be run either immediately after the `syncStatusChangedCallback` function returns or the next time the app resumes/restarts, depending on the `InstallMode` specified in `SyncOptions`.
|
||||
* __codePush.SyncStatus.SYNC_IN_PROGRESS *(7)* - There is an ongoing `sync` operation running which prevents the current call from being executed.
|
||||
* __codePush.SyncStatus.SYNC_IN_PROGRESS__ *(7)* - There is an ongoing `sync` operation running which prevents the current call from being executed.
|
||||
* __codePush.SyncStatus.UNKNOWN_ERROR__ *(-1)* - The sync operation encountered an unknown error.
|
||||
|
||||
### Objective-C API Reference (iOS)
|
||||
|
||||
Reference in New Issue
Block a user