Skip to content

Conversation

atopus
Copy link
Contributor

@atopus atopus commented Aug 18, 2018

onChangeOrder is called each time a row is swapped with another one, while dragging.

This triggers the rerendering of the whole list, and the sorting process by the user is interrupted.

Another solution would be to wait for the end of the dragging operation, and use the onReleaseRow callback.

In order to persist the order (for instance in a Redux store), the callback thus needs to get the new list order.

@damikdk damikdk mentioned this pull request Nov 9, 2018
phuongwd added a commit to phuongwd/react-native-sortable-list that referenced this pull request Dec 31, 2018
marconett added a commit to marconett/react-native-sortable-list that referenced this pull request Feb 20, 2019
@gitim gitim merged commit d706ec9 into gitim:master Apr 11, 2019
@gitim
Copy link
Owner

gitim commented Apr 11, 2019

Thanks, sorry for long delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants