UNPKG

react-native-sortables

Version:

Powerful Sortable Components for Flexible Content Reordering in React Native

36 lines (35 loc) 823 B
"use strict"; import React from "react"; import Animated from 'react-native-reanimated'; import AnimatedOnLayoutView from '../AnimatedOnLayoutView'; import { jsx as _jsx } from "react/jsx-runtime"; export default function ItemCell({ cellStyle, children, decorationStyles, entering, exiting, itemsOverridesStyle, onMeasure }) { return /*#__PURE__*/_jsx(Animated.View, { style: cellStyle, children: /*#__PURE__*/_jsx(AnimatedOnLayoutView, { entering: entering, exiting: exiting, style: [itemsOverridesStyle, decorationStyles], onLayout: ({ nativeEvent: { layout: { height, width } } }) => { onMeasure(width, height); }, children: children }) }); } //# sourceMappingURL=ItemCell.js.map