Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
50 lines
1.4 KiB
JavaScript
50 lines
1.4 KiB
JavaScript
// Module ID: 1640
|
|
// Function ID: 1641
|
|
// Dependencies: [19, 17]
|
|
// Exports: isAndroid, isChromeDebugger, isFabric, isIOS, isJest, isMacOS, isReact19, isWeb, isWindowAvailable, shouldBeUseWeb
|
|
|
|
// Module 1640
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import _mod19 from "module_19" /* 19 */;
|
|
|
|
const version = _mod19.version;
|
|
const Platform = _mod17.Platform;
|
|
|
|
export const isJest = function isJest() {
|
|
return process.env.JEST_WORKER_ID;
|
|
};
|
|
export const isChromeDebugger = function isChromeDebugger() {
|
|
return !(global.nativeCallSyncHook && !global.__REMOTEDEV__ || global.RN$Bridgeless);
|
|
};
|
|
export function isWeb() {
|
|
return false;
|
|
}
|
|
export function isAndroid() {
|
|
return true;
|
|
}
|
|
export function isIOS() {
|
|
return false;
|
|
}
|
|
export function isMacOS() {
|
|
return false;
|
|
}
|
|
export const shouldBeUseWeb = function shouldBeUseWeb() {
|
|
let flag = process.env.JEST_WORKER_ID;
|
|
if (!flag) {
|
|
flag = !(global.nativeCallSyncHook && !global.__REMOTEDEV__ || global.RN$Bridgeless);
|
|
const tmp2 = global.nativeCallSyncHook && !global.__REMOTEDEV__ || global.RN$Bridgeless;
|
|
}
|
|
if (!flag) {
|
|
flag = false;
|
|
}
|
|
return flag;
|
|
};
|
|
export const isFabric = function isFabric() {
|
|
return global._IS_FABRIC;
|
|
};
|
|
export const isReact19 = function isReact19() {
|
|
return version.startsWith("19.");
|
|
};
|
|
export const isWindowAvailable = function isWindowAvailable() {
|
|
return typeof window !== "undefined";
|
|
};
|