UNPKG

react-native-sortables

Version:

Powerful Sortable Components for Flexible Content Reordering in React Native

26 lines (25 loc) 777 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 horizontalLineProps = useDerivedValue(() => ({ ...props.value, y: props.value.position?.y ?? props.value.y })); const verticalLineProps = useDerivedValue(() => ({ ...props.value, x: props.value.position?.x ?? props.value.x })); return /*#__PURE__*/_jsxs(_Fragment, { children: [/*#__PURE__*/_jsx(DebugLine, { props: horizontalLineProps }), /*#__PURE__*/_jsx(DebugLine, { props: verticalLineProps })] }); } //# sourceMappingURL=DebugCross.js.map