react-native-update 10.10.0 → 10.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/provider.tsx +6 -0
package/package.json
CHANGED
package/src/provider.tsx
CHANGED
|
@@ -273,6 +273,12 @@ export const PushyProvider = ({
|
|
|
273
273
|
if (payload && payload.type) {
|
|
274
274
|
if (payload.type === '__rnPushyVersionHash') {
|
|
275
275
|
await checkUpdate({ toHash: payload.data });
|
|
276
|
+
if (updateInfoRef.current && updateInfoRef.current.upToDate) {
|
|
277
|
+
Alert.alert(
|
|
278
|
+
'提示',
|
|
279
|
+
'当前尚未检测到更新版本,如果是首次扫码,请等待服务器端生成补丁包后再试(约10秒)',
|
|
280
|
+
);
|
|
281
|
+
}
|
|
276
282
|
return true;
|
|
277
283
|
}
|
|
278
284
|
}
|