@sendbird/uikit-react-native
Version:
Sendbird UIKit for React Native: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
27 lines (26 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
function shouldUseScrollViewEnhancer() {
var _Platform$constants$r;
if (((_Platform$constants$r = _reactNative.Platform.constants.reactNativeVersion) === null || _Platform$constants$r === void 0 ? void 0 : _Platform$constants$r.major) < 1) {
var _Platform$constants$r2;
if (((_Platform$constants$r2 = _reactNative.Platform.constants.reactNativeVersion) === null || _Platform$constants$r2 === void 0 ? void 0 : _Platform$constants$r2.minor) < 72) {
return true;
}
}
return false;
}
let FlatListInternal = require('react-native').FlatList;
if (shouldUseScrollViewEnhancer()) {
try {
FlatListInternal = require('@sendbird/react-native-scrollview-enhancer').FlatList;
} catch {
FlatListInternal = require('react-native').FlatList;
}
}
var _default = exports.default = FlatListInternal;
//# sourceMappingURL=FlatListInternal.js.map