Replies: 2 comments 5 replies
-
Hey @GNUGradyn! The Isn't this simple I don't think that the |
Beta Was this translation helpful? Give feedback.
-
hmm, I tried this <Sortable.Handle key={x.key}>
<Sortable.Pressable onPress={() => { Alert.alert("test") }}>
{x}
</Sortable.Pressable>
</Sortable.Handle> but even if im careful not to drag at all with a mouse in the emulator, it does a drag and the alert is not shown unless I double tap/click. Same result with Sortable.TouchableOpacity. I am wrapping the pressable in a Handle because I have firefox_JF6X57rtIH.mp4as you can see, dragging works and double tapping works but a single tap does not. Thanks! Appreciate the help |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm rewriting an older app of mine. This app features drag & drop sorting as shown below.
screen-20250518-113503.mp4
However the drag & drop code is pretty bad especially compared to yours so this time I'm using react-native-sortables which has been excellent. However as you can see, clicking a draggable item in this app performs an action (opens the little rename/icon dialog at the bottom). The way I did this is by treating any drag events under a certain distance threshold as taps instead of drags. This functionality appears to be missing from react-native-sortables.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions