UNPKG

react-native-sortables

Version:

Powerful Sortable Components for Flexible Content Reordering in React Native

31 lines (30 loc) 908 B
"use strict"; import React from "react"; import { useDerivedValue } from 'react-native-reanimated'; import DebugLine from './DebugLine'; import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; export default function DebugCross({ props }) { const sharedProps = useDerivedValue(() => ({ ...props.value, x: props.value.position?.x ?? props.value.x, y: props.value.position?.y ?? props.value.y })); const horizontalLineProps = useDerivedValue(() => ({ ...sharedProps.value, type: 'horizontal' })); const verticalLineProps = useDerivedValue(() => ({ ...sharedProps.value, type: 'vertical' })); return /*#__PURE__*/_jsxs(_Fragment, { children: [/*#__PURE__*/_jsx(DebugLine, { props: horizontalLineProps }), /*#__PURE__*/_jsx(DebugLine, { props: verticalLineProps })] }); } //# sourceMappingURL=DebugCross.js.map