You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case is unique but I'm sharing in hopes that this prop is included.
I'm currently building out a custom SwipeRow component based on Swipeable. My intention is to allow a "swipe to delete" option. The idea is that once a user drags the row past a certain hotspot, then releases, it would perform that delete action. I also included a haptic to signal to the user that the action is "loaded" and ready to fire.
I'm able to set up a useEffect and track my Swipeable ref's drag state but I see no way to fire an event when the Swipeable is released.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My use case is unique but I'm sharing in hopes that this prop is included.
I'm currently building out a custom SwipeRow component based on Swipeable. My intention is to allow a "swipe to delete" option. The idea is that once a user drags the row past a certain hotspot, then releases, it would perform that delete action. I also included a haptic to signal to the user that the action is "loaded" and ready to fire.
I'm able to set up a
useEffect
and track my Swipeable ref's drag state but I see no way to fire an event when the Swipeable is released.Beta Was this translation helpful? Give feedback.
All reactions