Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Detect scrolling view #159

Open
mehulmpt opened this issue Apr 25, 2017 · 2 comments
Open

Detect scrolling view #159

mehulmpt opened this issue Apr 25, 2017 · 2 comments

Comments

@mehulmpt
Copy link

mehulmpt commented Apr 25, 2017

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)
}
}];

@silentcloud
Copy link
Collaborator

I think it is no need to pass params to onPress.

Please show your complete code.

@CheragV
Copy link

CheragV commented May 25, 2017

I think there is an onOpen function call prop which might help you @mehulmpt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants