leecade/react-native-swiper

how to detect swipe left or right

todaysprint opened this issue · 1 comments

how to detect swipe left or right ? there only i can set index number to the useState

OnTouchStart and OnTouchEnd Methods can be used to detect the Left/Right Swipe, it works fine on IOS but for android, you should use scrollEnabled = false.
hope this helps you.

how to detect swipe left or right ? there only i can set index number to the useState