react-native-sortables
Version:
Powerful Sortable Components for Flexible Content Reordering in React Native
20 lines (19 loc) • 648 B
JavaScript
;
import React from "react";
import Animated, { interpolate, useAnimatedStyle } from 'react-native-reanimated';
import { jsx as _jsx } from "react/jsx-runtime";
export default function DefaultDropIndicator({
activeAnimationProgress,
style
}) {
const animatedStyle = useAnimatedStyle(() => ({
opacity: style.opacity ?? activeAnimationProgress.value,
transform: style.transform ?? [{
scale: interpolate(Math.pow(activeAnimationProgress.value, 1 / 3), [0, 1], [1.1, 1])
}]
}));
return /*#__PURE__*/_jsx(Animated.View, {
style: [style, animatedStyle]
});
}
//# sourceMappingURL=DefaultDropIndicator.js.map