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

Automatically close row doesn't work #549

Closed jainshreyp closed 3 years ago

jainshreyp commented 3 years ago

Describe the bug

To Reproduce Steps to reproduce the behavior: Create a component with all the basic options, and use section list, with section list data.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

jemise111 commented 3 years ago

@jainshreyp 99% of the time this is due to the objects not having a key property or your keyExtractor being implemented incorrectly. Can you please double check these two things and if you don't find any problems please post some example code I could look at, thanks!

jainshreyp commented 3 years ago

Ahhh your right, forgot to pass my keyExtractor haha! Thanks for your help, sorry for not being more informed, I didn't see the keyExtractor on the swipe list (but i realized thats cuz u had the key property). Thank you!