Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to listen for when the current page changes? #8

Closed
eljago opened this issue Jul 5, 2015 · 2 comments
Closed

Any way to listen for when the current page changes? #8

eljago opened this issue Jul 5, 2015 · 2 comments

Comments

@eljago
Copy link

eljago commented Jul 5, 2015

Hello, thank you for this module I really like it.

I want to load the data of a page only when it becomes active.
I'm a little noob with react still so I don't know if this is easy or not to implement, but is there a way to know when a page changes?

Thank you.

@brentvatne
Copy link
Collaborator

Hey @eljago! I had an undocumented hook for this: onChangeTab prop - I added some documentation for it now: https://github.com/brentvatne/react-native-scrollable-tab-view#props - let me know if this works for you as you expect!

@eljago
Copy link
Author

eljago commented Jul 5, 2015

Worked perfectly, thanks !

@eljago eljago closed this as completed Jul 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants