useSwipe
Note
This feature is experimental and may change or be removed based on developer feedback and real-world usage.
Simple implementation to detect horizontal swipe actions. Accepts callbacks for on right and left swipes.
Import
import { useSwipe } from "@livekit/components-react";
Usage
<divonTouchStart={onTouchStart}onTouchMove={onTouchMove}onTouchEnd={onTouchEnd}>
Properties
Returns
void