react-native-swipeable
react-native-swipeable copied to clipboard
Order not persisted on list re-render
I am using swipeable components in a SectionList that is subject to change often.
Here is the behavior I am experiencing:
If I were to have a list of 10 items, and I swipe open item number 3 in the list. Then while, item 3 is still open, I remove item number 1 from the list. I would expect item number 2 to be the one that is now opened. Instead, what I see is item number 3 (used to be item number 4) opened.
Is there any way to get around this? It seems like an issue with the way SectionList recycles views?
Here is a gif showing the issue. Notice how the swipeable component remains opened.

This issue can be closed. This video does a good job at explaining how to manage this type of scenario with FlatList.