UNPKG

@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.

32 lines (31 loc) 1.08 kB
"use strict"; 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; } function getFlatList() { if (shouldUseScrollViewEnhancer()) { try { return require('@sendbird/react-native-scrollview-enhancer').FlatList; } catch { return require('react-native').FlatList; } } else { return require('react-native').FlatList; } } const FlatListInternal = getFlatList(); var _default = FlatListInternal; exports.default = _default; //# sourceMappingURL=FlatListInternal.js.map