-
Is there any way of reading the key of the item currently being dragged inside the render item function? I managed to do this by creating my own context wrapping Sortable.Grid with a SharedValue of the active item key. I then set this value in onDragStart/onDragEnd. This value can be read inside a component rendered in renderItem.
I think this could be more easily be provided by this library. Screen_Recording.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @pkfms! I added the I will add this missing export and it should be available in the next release that I plan to make in about a week. |
Beta Was this translation helpful? Give feedback.
Hey @pkfms!
I added the
ItemContext
some time ago and there is auseItemContext
hook that returns an object withisActive
SharedValue, but I can see that I forgot to export it from the library and didn't add docs yet.I will add this missing export and it should be available in the next release that I plan to make in about a week.