react-native-sortables
Version:
Powerful Sortable Components for Flexible Content Reordering in React Native
30 lines (29 loc) • 917 B
JavaScript
;
import React from "react";
import { LayoutAnimationConfig } from 'react-native-reanimated';
import { useTeleportedItemLayout } from '../../../providers';
import ItemCell from './ItemCell';
import { jsx as _jsx } from "react/jsx-runtime";
export default function TeleportedItemCell({
activationAnimationProgress,
baseStyle,
children,
isActive,
itemKey,
onLayout
}) {
const teleportedItemLayoutValue = useTeleportedItemLayout(itemKey, isActive, activationAnimationProgress);
return /*#__PURE__*/_jsx(ItemCell, {
activationAnimationProgress: activationAnimationProgress,
baseStyle: baseStyle,
isActive: isActive,
itemKey: itemKey,
layoutStyleValue: teleportedItemLayoutValue,
onLayout: onLayout,
children: /*#__PURE__*/_jsx(LayoutAnimationConfig, {
skipEntering: true,
children: children
})
});
}
//# sourceMappingURL=TeleportedItemCell.js.map