skip to Main Content

Please can someone help me on how to make my react native app detect when a user swipes left or right? I already researched randomly but seem not to have a positive answer.

So any function or package that can help?

I am mapping through a list of objects and I want the user to view next object in array whenever he swipes ( just like on click ).

It works with onClick but I need it with swipes.

2

Answers


  1. It depends on what you want to do, you can create a carousel using a horizontal Flatlist and use pagination to swipe elements. Please add more details

    Login or Signup to reply.
  2. Try PanResponder from the docs here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search