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

How can i get current page #1199

Open
vietmaki opened this issue May 14, 2023 · 1 comment
Open

How can i get current page #1199

vietmaki opened this issue May 14, 2023 · 1 comment

Comments

@vietmaki
Copy link

I want use Next and Prev button, how can i get current page to next or pre page
Thanks!

@sushantjadhav111
Copy link

@vietmaki you can use props called on "onChangeTab" which is function called when tab is changed,it accept object argument if you console it ,it will be like eg. {"from": 0, "i": 1, "ref": favorite}, so key "i" represents index of current page, you can handle next prev page with "i". hope this will help to solve your problem.

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