Is there a way to detect which view I scrolled? I'm using this in a scrollview list and need to get which view I scrolled. Is there something i can do like:
<Swipeout right={swipeoutBtns} passDataToOnPress={e.id}> // where e.id is unique for this swpieout
and then
var swipeoutBtns = [{
text: 'Lock',
onPress: (e) => {
console.log(e); // logs 1234 (the id passed above)
}
}];
Is there a way to detect which view I scrolled? I'm using this in a scrollview list and need to get which view I scrolled. Is there something i can do like:
<Swipeout right={swipeoutBtns} passDataToOnPress={e.id}> // where e.id is unique for this swpieout
and then