Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
37 lines
1 KiB
JavaScript
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;
|
|
}
|
|
};
|