UNPKG

react-native-gesture-image-viewer

Version:

🖼️ A highly customizable and easy-to-use React Native image viewer with gesture support and external controls

25 lines (24 loc) 701 B
"use strict"; import { Platform } from 'react-native'; import { isFlashListLike, isFlatListLike } from "./utils.js"; import { jsx as _jsx } from "react/jsx-runtime"; function WebPagingFixStyle({ Component }) { if (Platform.OS !== 'web') { return null; } if (isFlashListLike(Component)) { return /*#__PURE__*/_jsx("style", { children: `[data-flash-list-paging-enabled-fix] > div {height: 100%;}` }); } if (isFlatListLike(Component)) { return /*#__PURE__*/_jsx("style", { children: `[data-flat-list-paging-enabled-fix] > div > div > div {height: 100%;}` }); } return null; } export default WebPagingFixStyle; //# sourceMappingURL=WebPagingFixStyle.js.map