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

fix error

This commit is contained in:
sunnylqm
2025-02-17 23:00:16 +08:00
parent 0df6fa822b
commit 46974ddb75

View File

@@ -14,7 +14,7 @@ export const PushyModule =
: NativeModules.Pushy;
if (!PushyModule) {
throw new Error('react-native-update 模块无法加载,请对照安装文档检查配置。');
throw new Error('react-native-update 模块无法加载,请尝试重新编译');
}
const PushyConstants = isTurboModuleEnabled
@@ -32,8 +32,8 @@ export const buildTime: string = PushyConstants.buildTime;
let uuid = PushyConstants.uuid;
if (Platform.OS === 'android' && !PushyConstants.isUsingBundleUrl) {
throw new Error(
'react-native-update 模块无法加载,请对照文档检查 Bundle URL 的配置',
console.warn(
'react-native-update 没有检测到 Bundle URL 的配置,这可能是因为您使用了某种懒加载机制(比如使用 expo可忽略本警告或是 Bundle URL 的配置不正确(请对照文档检查)',
);
}