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

Question: Change SwipeRow style when swiping started #610

Closed cip123 closed 1 year ago

cip123 commented 1 year ago

Hi, I started using the library, and it looks great.

The issue I am facing is that I couldn't find a way to change the style of the SwipeRow when the user started sliding it (I am using a standalone SwipeRow). I would like a darker background or a border for that item, making it easier to see what row is selected ( I don't use borders for the elements of the ListView).

I have looked at swipeGestureBegan, hoping that I set the style conditionally for that row, but that function doesn't take any parameter, so I can't know which row started sliding.

Is there a way around this?