react-native-swiper
react-native-swiper copied to clipboard
how to detect swipe left or right
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