1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 09:01:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

修复ios禁用时报错

This commit is contained in:
sunnylqm
2019-10-25 19:05:01 +08:00
parent b44225f9bd
commit 1cb974ca61
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,9 @@
### 最近更新
## 5.3.2 (2019-10-25)
1. 可以禁用ios端以避免审核被拒
## 5.3.0 (2019-09-19)
1. 替换 apk reader 以避免某些环境读取 apk 版本号报错的问题

View File

@@ -2,7 +2,7 @@
本组件是面向 React Native 提供热更新功能的组件,建议结合[Update 服务](https://update.reactnative.cn/)使用。
注意,在 iOS 上使用热更新有被拒的可能。可以按以下步骤屏蔽 iOS 端(`react-native-update`版本需 >= 5.3.1)
注意,在 iOS 上使用热更新有被拒的可能。可以按以下步骤屏蔽 iOS 端(`react-native-update`版本需 >= 5.3.2)
1. 如果 RN 版本>=0.60,在项目根目录下编辑或创建 react-native.config.js添加如下内容

View File

@@ -1,5 +1,5 @@
import { NativeAppEventEmitter, NativeModules } from 'react-native';
const { HotUpdate = {} } = NativeModules;
const HotUpdate = NativeModules.HotUpdate || {};
const host = 'https://update.reactnative.cn/api';
@@ -40,7 +40,6 @@ function assertRelease() {
}
}
export async function checkUpdate(APPKEY) {
assertRelease();
const resp = await fetch(`${host}/checkUpdate/${APPKEY}`, {