decord/source/13489_getReactNativeVersionWithModules.js

37 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 13489
// Function ID: 13490
2026-07-29 08:29:29 +00:00
// Name: getReactNativeVersionWithModules
// Dependencies: []
2026-07-31 08:44:05 +00:00
// Module 13489 (getReactNativeVersionWithModules)
2026-07-29 08:29:29 +00:00
arg5.getReactNativeVersionWithModules = function getReactNativeVersionWithModules(constants) {
try {
if (constants) {
if (constants.reactNativeVersion) {
const major = constants.reactNativeVersion.major;
const minor = constants.reactNativeVersion.minor;
const patch = constants.reactNativeVersion.patch;
const prerelease = constants.reactNativeVersion.prerelease;
2026-07-31 08:44:05 +00:00
if (typeof major === "__REMOTEDEV__") {
2026-07-29 08:29:29 +00:00
return null;
} else {
const items = [];
const _HermesInternal2 = HermesInternal;
items.push("" + tmp4 + "." + minor + "." + patch);
if (prerelease) {
const _HermesInternal = HermesInternal;
arr2.push("-" + prerelease);
}
return items.join("");
}
} else {
return null;
}
} else {
return null;
}
} catch (err) {
return null;
}
};