decord/source/__polyfill/14xxx/module_14493.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

37 lines
1 KiB
JavaScript

// Module ID: 14493
// Function ID: 14494
// Dependencies: []
// Exports: getReactNativeVersionWithModules
// Module 14493
export const 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;
if (typeof major !== "number") {
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;
}
};