-
Notifications
You must be signed in to change notification settings - Fork 299
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 to jump to certain Image/Index? #125
Comments
It's not perfect solution but it works. what simply it does is that it Rerenders the gallery component with new initialPage value.
|
use three backtick ` |
Oh btw, you can use
@nerdartist |
Thank you for that little snippet. |
The script added by @ptdede works for me. But is there any method by which I can detect whether I have reached end of the array and is trying to swipe again so that i can implement the loop feature in this library. |
@bhavna-18 you can get size of array of your images. you can compare that against onPageSelected prop |
I want to have a button which takes user to specified index on being pressed.
Please someone throw light on how this can be done.
Thanks
The text was updated successfully, but these errors were encountered: