mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-01 13:53:11 +08:00
fix error
This commit is contained in:
@@ -14,7 +14,7 @@ export const PushyModule =
|
|||||||
: NativeModules.Pushy;
|
: NativeModules.Pushy;
|
||||||
|
|
||||||
if (!PushyModule) {
|
if (!PushyModule) {
|
||||||
throw new Error('react-native-update 模块无法加载,请对照安装文档检查配置。');
|
throw new Error('react-native-update 模块无法加载,请尝试重新编译');
|
||||||
}
|
}
|
||||||
|
|
||||||
const PushyConstants = isTurboModuleEnabled
|
const PushyConstants = isTurboModuleEnabled
|
||||||
@@ -32,8 +32,8 @@ export const buildTime: string = PushyConstants.buildTime;
|
|||||||
let uuid = PushyConstants.uuid;
|
let uuid = PushyConstants.uuid;
|
||||||
|
|
||||||
if (Platform.OS === 'android' && !PushyConstants.isUsingBundleUrl) {
|
if (Platform.OS === 'android' && !PushyConstants.isUsingBundleUrl) {
|
||||||
throw new Error(
|
console.warn(
|
||||||
'react-native-update 模块无法加载,请对照文档检查 Bundle URL 的配置',
|
'react-native-update 没有检测到 Bundle URL 的配置,这可能是因为您使用了某种懒加载机制(比如使用 expo,可忽略本警告),或是 Bundle URL 的配置不正确(请对照文档检查)',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user