gestureDetector adds native gesture recognition around a subtree. It is experimental and may
change in a future runtime.
Properties
Tap
Usetap for a completed press with limited pointer movement. Restore temporary feedback from
onFinalize, which also runs when the gesture is cancelled.
Pan
Usepan when movement should update the UI continuously. mapEvent copies gesture values into
shared values without a React render on every pointer update.
Long press
UselongPress 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.
mapEvent for high-frequency gesture updates and a callback when you need custom logic. See
React gestures for cancellation and animation patterns.