decord/source/5751_reactNativeVersion.js

27 lines
609 B
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5751
// Function ID: 5752
2026-07-29 08:29:29 +00:00
// Name: reactNativeVersion
// Dependencies: [17]
// Exports: isRN083OrAbove
2026-08-25 06:04:03 +00:00
// Module 5751 (reactNativeVersion)
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
const constants = get_ActivityIndicator.Platform.constants;
2026-07-29 08:29:29 +00:00
let reactNativeVersion;
if (constants != null) {
reactNativeVersion = constants.reactNativeVersion;
}
export const isRN083OrAbove = () => {
let tmp2 = reactNativeVersion;
if (reactNativeVersion) {
let tmp3 = tmp.major > 0;
if (!tmp3) {
tmp3 = tmp.minor >= 83;
}
tmp2 = tmp3;
}
return tmp2;
};