Wednesday 27 September 2023

Swipe gesture without change UI and animation

I can find many tutorials on swiping for navigation or swiping on a component, but I would like to be able to swipe on the entire page like with navigation. Still, instead of navigating or doing anything at all with the UI, I would like a completed swipe to call a method so I can fetch some new data depending on if the user swiped left or right.

How would I do this? By using a PanGestureHandler and somehow trigger a function to load new content of the swipe performed? How do I detect a horizontal swipe without making any UI changes?



from Swipe gesture without change UI and animation

No comments:

Post a Comment