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:
Marc
2018-06-29 04:30:18 -04:00
committed by Nickolay Toropov
parent 3144c91601
commit 8b5b8eab0a
5 changed files with 24 additions and 2 deletions

View File

@@ -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