decord/source/13402_getReactNativeVersionWithModules.js

33 lines
991 B
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 13402
// Function ID: 102900
2026-07-20 16:05:17 +00:00
// Name: getReactNativeVersionWithModules
// Dependencies: []
2026-07-25 08:10:48 +00:00
// Module 13402 (getReactNativeVersionWithModules)
2026-07-20 16:05:17 +00:00
arg5.getReactNativeVersionWithModules = function getReactNativeVersionWithModules(constants) {
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;
if ("number" !== typeof major) {
return null;
} else {
const items = [];
const _HermesInternal = HermesInternal;
items.push("" + tmp5 + "." + minor + "." + patch);
if (prerelease) {
const _HermesInternal2 = HermesInternal;
arr2.push("-" + prerelease);
}
return items.join("");
}
} else {
return null;
}
} else {
return null;
}
};