chenglou / chenglou/react-motion

Ordered list animation

Open
#263 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I'm struggling in a problem for a couple of days now.

I'm using redux with react-native and in my store I have a ordered array which in the UI is a list of cards.

Imagine the same scenario as this example:
http://chenglou.me/react-motion/demos/demo8-draggable-list/

But the user can choose by what he is ordering this list, so when the user change the sorting order I dispatch an action to my store which will return the new state with the ordered array and my view should animate the cards to the new order to reflect the state.

How do you guys are approaching this scenario?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.