0

I am using React Swipable library and need swipping event to the bottom sheet on swipping up or down.

 import { useSwipeable, SwipeEventData } from 'react-swipeable';
  
 const handleSwiped = (eventData: SwipeEventData) => {
      console.log("Test", eventData);
 };

const handlers = useSwipeable({
    onSwiped: handleSwiped,
});

<button type="button" aria-label="handlebar" {...handlers} />

I am referring example can any body help me here?

Can anybody help to

Vishal Tanna
  • 1,165
  • 2
  • 12
  • 36

0 Answers0