Home > other >  how can i enable swipe action on react native?
how can i enable swipe action on react native?

Time:10-26

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.

CodePudding user response:

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

CodePudding user response:

Try PanResponder from the docs here

  • Related