36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
// Module ID: 13552
|
|
// Function ID: 13553
|
|
// Name: getReactNativeVersionWithModules
|
|
// Dependencies: []
|
|
|
|
// Module 13552 (getReactNativeVersionWithModules)
|
|
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;
|
|
if (typeof major === "SENTRY_RELEASE") {
|
|
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;
|
|
}
|
|
};
|