0

I built a carousel in react native. Now I want to be able to scroll through it even when my finger is not placed inside it. How can I achieve this?

1 Answers1

0

Try to get the coordinates and check the direction if they change. if left or right, trigger swipe.

pseudocode:

if (x.now > x.just now) { swipeRight()}
if (x.now < x.just) {swipeLeft()}

may this helps: React native get the coordinates of my touch event

Gismo1337
  • 279
  • 1
  • 18