Explorar el Código

Merge commit 'refs/tags/jenkins-front-end-screenad-180-v29^{}' into develop

tags/jenkins-front-end-screenad-185-v103^0
hupeng hace 5 años
padre
commit
43ce06e0b0
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      App.js

+ 4
- 2
App.js Ver fichero

@@ -117,14 +117,16 @@ export default class MyPage extends Component {
codePushUpdate() {
CodePush.allowRestart();
CodePush.sync(
{ installMode: CodePush.InstallMode.ON_NEXT_RESUME},
{ mandatoryInstallMode: CodePush.InstallMode.IMMEDIATE,
installMode: CodePush.InstallMode.IMMEDIATE},
this.codePushStatusDidChange.bind(this),
this.codePushDownloadDidProgress.bind(this)
);

CodePush.getUpdateMetadata(CodePush.UpdateState.RUNNING)
.then((metadata: LocalPackage) => {
this.setState({ versionInfo: metadata ? 'B'+NativeModules.BuildConfig.versionCode+"-" + metadata.label : 'B'+ NativeModules.BuildConfig.versionCode});
this.setState({ versionInfo: metadata ? 'b'+NativeModules.BuildConfig.versionCode+"-" + metadata.label : 'b'+ NativeModules.BuildConfig.versionCode});
versionInfo = this.state.versionInfo;
}, (error: any) => {
this.setState({ versionInfo: "Unknown"});


Cargando…
Cancelar
Guardar