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.

21 lines 863 B
import { Platform } from 'react-native'; function shouldUseScrollViewEnhancer() { var _Platform$constants$r; if (((_Platform$constants$r = Platform.constants.reactNativeVersion) === null || _Platform$constants$r === void 0 ? void 0 : _Platform$constants$r.major) < 1) { var _Platform$constants$r2; if (((_Platform$constants$r2 = 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; } } export default FlatListInternal; //# sourceMappingURL=FlatListInternal.js.map