jemise111 / react-native-swipe-list-view

A React Native ListView component with rows that swipe open and closed
https://www.npmjs.com/package/react-native-swipe-list-view
MIT License
2.78k stars 528 forks source link

Hidden row prevent re-render #608

Open manosKas opened 2 years ago

manosKas commented 2 years ago

Describe the bug Avoid re-rendering of hidden item (row) when hook state is changing

To Reproduce SwipeListView with renderItem and renderHiddenItem as simple as it can be, but there is a useState hook to controll multiple select mode which renderItem toggles it onLongPress.

example expo link: https://snack.expo.dev/@manolee22/flatlist-simple

Environment (please complete the following information):