2026-07-21 22:01:30 +00:00
|
|
|
// Module ID: 5151
|
|
|
|
|
// Function ID: 43657
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: reactNativeVersion
|
|
|
|
|
// Dependencies: []
|
|
|
|
|
// Exports: isRN083OrAbove
|
|
|
|
|
|
2026-07-21 22:01:30 +00:00
|
|
|
// Module 5151 (reactNativeVersion)
|
2026-07-20 16:05:17 +00:00
|
|
|
const constants = require(dependencyMap[0]).Platform.constants;
|
|
|
|
|
let reactNativeVersion;
|
|
|
|
|
if (null != constants) {
|
|
|
|
|
reactNativeVersion = constants.reactNativeVersion;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const isRN083OrAbove = function isRN083OrAbove() {
|
|
|
|
|
let tmp = reactNativeVersion;
|
|
|
|
|
if (reactNativeVersion) {
|
|
|
|
|
let tmp3 = reactNativeVersion.major > 0;
|
|
|
|
|
if (!tmp3) {
|
|
|
|
|
tmp3 = reactNativeVersion.minor >= 83;
|
|
|
|
|
}
|
|
|
|
|
tmp = tmp3;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|