react-native-update 10.26.3 → 10.26.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.tsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.26.3",
3
+ "version": "10.26.4",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {
package/src/provider.tsx CHANGED
@@ -181,7 +181,7 @@ export const UpdateProvider = ({
181
181
  setUpdateInfo(info);
182
182
  if (info.expired) {
183
183
  const { downloadUrl } = info;
184
- if (downloadUrl) {
184
+ if (downloadUrl && Pushy.apkStatus === null) {
185
185
  if (options.updateStrategy === 'silentAndNow') {
186
186
  if (Platform.OS === 'android' && downloadUrl.endsWith('.apk')) {
187
187
  downloadAndInstallApk(downloadUrl);