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

shouldItemUpdate does not seem to work in version 3.2.9 #612

Open DianaLaa opened 1 year ago

DianaLaa commented 1 year ago

Describe the bug The shouldItemUpdate method seems to receive the same object twice.

To Reproduce Apply shouldItemUpdate on an object, that checks o1.field !== o2.field. Then, update the field.

Expected: The method receives as o1 the old object and as o2 the new object Actual: The method receives the new object twice.

Screenshots

Environment (please complete the following information):