Skip to content

Commit 46974dd

Browse files
committed
fix error
1 parent 0df6fa8 commit 46974dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const PushyModule =
1414
: NativeModules.Pushy;
1515

1616
if (!PushyModule) {
17-
throw new Error('react-native-update 模块无法加载,请对照安装文档检查配置。');
17+
throw new Error('react-native-update 模块无法加载,请尝试重新编译');
1818
}
1919

2020
const PushyConstants = isTurboModuleEnabled
@@ -32,8 +32,8 @@ export const buildTime: string = PushyConstants.buildTime;
3232
let uuid = PushyConstants.uuid;
3333

3434
if (Platform.OS === 'android' && !PushyConstants.isUsingBundleUrl) {
35-
throw new Error(
36-
'react-native-update 模块无法加载,请对照文档检查 Bundle URL 的配置',
35+
console.warn(
36+
'react-native-update 没有检测到 Bundle URL 的配置,这可能是因为您使用了某种懒加载机制(比如使用 expo,可忽略本警告),或是 Bundle URL 的配置不正确(请对照文档检查)',
3737
);
3838
}
3939

0 commit comments

Comments
 (0)