Skip to main content
gestureDetector adds native gesture recognition around a subtree. It is experimental and may change in a future runtime.

Properties

Tap

Use tap for a completed press with limited pointer movement. Restore temporary feedback from onFinalize, which also runs when the gesture is cancelled.

Pan

Use pan when movement should update the UI continuously. mapEvent copies gesture values into shared values without a React render on every pointer update.

Long press

Use longPress for hold actions. onStart runs after the native long-press threshold is reached.

Drag

drag is an alias for the native pan implementation. Use it when the UI represents a draggable object; its lifecycle and event data match pan.
Use mapEvent for high-frequency gesture updates and a callback when you need custom logic. See React gestures for cancellation and animation patterns.