onItemClick is an optional function which is called once a list item is clicked or touched. It provides clickedItem: Object as an argument. Use this prop if you want the user to be able to select some item in the list and run custom logic with that item, regardless of if it is dragged.
In version 4.2.0, I've added an item parameter to the onDragStart prop (and the onDragEnd prop) which can be used in place of this. The new onItemClick prop seemed redundant after that.
onItemClick
is an optional function which is called once a list item is clicked or touched. It providesclickedItem: Object
as an argument. Use this prop if you want the user to be able to select some item in the list and run custom logic with that item, regardless of if it is dragged.