Skip to content

Return the new list order on release row #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2019
Merged

Return the new list order on release row #117

merged 3 commits into from
Apr 11, 2019

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants