decord/source/13678_getReactNativeVersionWithModules.js

37 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 13678
// Function ID: 13679
2026-07-29 08:29:29 +00:00
// Name: getReactNativeVersionWithModules
// Dependencies: []
2026-08-08 06:10:11 +00:00
// Module 13678 (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-08-04 21:03:28 +00:00
if (typeof major !== "number") {
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;
}
};