个人设置更新按钮生效解决方法:
// auto update
autoCheckHardUpdate = async () => {
// you can like this
// let res = await request()
let res = {
"data": {
"version": "0.1",
"filename": "wechat",
"url": "http://222.169.40.2:8666/data/wisegame/1d68c0b23cfdf238/weixin_1340.apk?business_id=9034&task_id=6637471880647409681",
"desc": "修复bug"
}, "error": {"code": 0}
}
if (res) {
return res.data
}
}
<RNUpdate
ref={r => global.$RNUpdate = r}
onBeforeStart={this.autoCheckHardUpdate}
progressBarColor="#f50"/>
自动检测方法也需写上 不过只要写死就可以了
这样点击检测方法就有效了