A framework for building native apps using React
Overall
score
100%
Evaluation — 100%
↑ 1.06xAgent success when using this tile
A React Native component that implements a draggable card with gesture-based interactions. The card can be dragged around the screen and responds to pan gestures with visual feedback.
The component recognizes and handles drag gestures, allowing users to move the card by touching and dragging.
The component tracks different gesture states and provides appropriate visual feedback.
The component maintains the card's position after gestures complete.
@generates
import React from 'react';
import { ViewStyle } from 'react-native';
export interface DraggableCardProps {
/** Initial X position of the card */
initialX?: number;
/** Initial Y position of the card */
initialY?: number;
/** Card width */
width?: number;
/** Card height */
height?: number;
/** Background color of the card */
backgroundColor?: string;
/** Content to display inside the card */
children?: React.ReactNode;
}
/**
* A draggable card component that responds to pan gestures.
* Users can touch and drag the card around the screen.
*/
export function DraggableCard(props: DraggableCardProps): React.ReactElement;Provides gesture handling support through PanResponder and animated components for smooth interactions.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-react-native@1000.0.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10