1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 12:11:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2024-07-25 23:45:12 +08:00
parent af65b2660c
commit 11b383d10b
3 changed files with 9 additions and 2 deletions

View File

@@ -9,7 +9,8 @@
"test": "jest",
"test:e2e": "detox test --configuration android.emu.debug",
"lint": "eslint .",
"postinstall": "patch-package"
"postinstall": "patch-package",
"apk": "cd android && ./gradlew assembleRelease"
},
"dependencies": {
"patch-package": "^6.5.1",

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "10.10.0",
"version": "10.10.1",
"description": "react-native hot update",
"main": "src/index",
"scripts": {

View File

@@ -273,6 +273,12 @@ export const PushyProvider = ({
if (payload && payload.type) {
if (payload.type === '__rnPushyVersionHash') {
await checkUpdate({ toHash: payload.data });
if (updateInfoRef.current && updateInfoRef.current.upToDate) {
Alert.alert(
'提示',
'当前尚未检测到更新版本如果是首次扫码请等待服务器端生成补丁包后再试约10秒',
);
}
return true;
}
}