24 lines
590 B
JavaScript
24 lines
590 B
JavaScript
// Module ID: 5372
|
|
// Function ID: 46027
|
|
// Name: reactNativeVersion
|
|
// Dependencies: []
|
|
// Exports: isRN083OrAbove
|
|
|
|
// Module 5372 (reactNativeVersion)
|
|
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;
|
|
};
|