We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0df6fa8 commit 46974ddCopy full SHA for 46974dd
src/core.ts
@@ -14,7 +14,7 @@ export const PushyModule =
14
: NativeModules.Pushy;
15
16
if (!PushyModule) {
17
- throw new Error('react-native-update 模块无法加载,请对照安装文档检查配置。');
+ throw new Error('react-native-update 模块无法加载,请尝试重新编译');
18
}
19
20
const PushyConstants = isTurboModuleEnabled
@@ -32,8 +32,8 @@ export const buildTime: string = PushyConstants.buildTime;
32
let uuid = PushyConstants.uuid;
33
34
if (Platform.OS === 'android' && !PushyConstants.isUsingBundleUrl) {
35
- throw new Error(
36
- 'react-native-update 模块无法加载,请对照文档检查 Bundle URL 的配置',
+ console.warn(
+ 'react-native-update 没有检测到 Bundle URL 的配置,这可能是因为您使用了某种懒加载机制(比如使用 expo,可忽略本警告),或是 Bundle URL 的配置不正确(请对照文档检查)',
37
);
38
39
0 commit comments