You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue with state management, specifically when adding an element. Its position is not accurate, indicating that something is wrong. In general, we need to mention that we aim to improve state management.
` const GestureHandler = ({
element,
onGestureEnd,
onTransformUpdate,
onShowMore,
onEdit,
onDelete,
}) => {
const [isSelected, setIsSelected] = useState(false);
const centerX = useSharedValue(element.position.x);
const centerY = useSharedValue(element.position.y);
const scale = useSharedValue(1);
const rotation = useSharedValue(0);
const savedScale = useSharedValue(1);
const lastRotation = useSharedValue(0);
// Get element dimensions based on type
const dimensions = getElementDimensions(element);
Originally posted by @hussainabuhajjaj in #2900
The text was updated successfully, but these errors were encountered: