32 lines
991 B
JavaScript
32 lines
991 B
JavaScript
// Module ID: 13402
|
|
// Function ID: 102900
|
|
// Name: getReactNativeVersionWithModules
|
|
// Dependencies: []
|
|
|
|
// Module 13402 (getReactNativeVersionWithModules)
|
|
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;
|
|
}
|
|
};
|