mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
Expose clearUpdates method to RN for purging downloaded packages (#1269)
This is useful when changing to a deployment with an older version than the currently installed package.
This commit is contained in:
@@ -542,6 +542,7 @@ if (NativeCodePush) {
|
||||
sync,
|
||||
disallowRestart: RestartManager.disallow,
|
||||
allowRestart: RestartManager.allow,
|
||||
clearUpdates: NativeCodePush.clearUpdates,
|
||||
InstallMode: {
|
||||
IMMEDIATE: NativeCodePush.codePushInstallModeImmediate, // Restart the app immediately
|
||||
ON_NEXT_RESTART: NativeCodePush.codePushInstallModeOnNextRestart, // Don't artificially restart the app. Allow the update to be "picked up" on the next app restart
|
||||
|
||||
Reference in New Issue
Block a user