Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
})
break
case CodePush.SyncStatus.UNKNOWN_ERROR:
self.setState({
syncMessage: '未知的错误',
progress: false
})
break
}
},
progress => {
this.setState({ progress })
}
)
} catch (e) {
CodePush.log(e)
this._toast.show('更新服务器异常')
}
}
renderProgress() {