UNPKG

react-native-sortables

Version:

Powerful Sortable Components for Flexible Content Reordering in React Native

29 lines (28 loc) 887 B
"use strict"; import React from "react"; import { LayoutAnimationConfig } from 'react-native-reanimated'; import { useTeleportedItemStyles } from '../../../providers'; import ItemCell from './ItemCell'; import { jsx as _jsx } from "react/jsx-runtime"; export default function TeleportedItemCell({ activationAnimationProgress, cellStyle, children, isActive, itemKey, onLayout }) { const teleportedItemStyles = useTeleportedItemStyles(itemKey, isActive, activationAnimationProgress); return /*#__PURE__*/_jsx(ItemCell, { activationAnimationProgress: activationAnimationProgress, cellStyle: [cellStyle, teleportedItemStyles], isActive: isActive, itemKey: itemKey, onLayout: onLayout, children: /*#__PURE__*/_jsx(LayoutAnimationConfig, { skipEntering: true, children: children }) }); } //# sourceMappingURL=TeleportedItemCell.js.map