-
Notifications
You must be signed in to change notification settings - Fork 209
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
Using custom controls #95
Comments
The current image is stored in this.state.currentImage. You shouldn't be setting it manually. |
Thank you for the prompt answer. When a user opens lightbox and clicks "ClickMe" button, what is the correct way to get currentImage (I always get |
The lightbox control and custom controls within it are handled by the react-images library. You'll need to take a look over there to answer your question as I've not had the need to implement custom controls so I don't know off the top of my head. |
In It seems that |
Hello,
I need some custom controls to work with an image currently opened in the lightbox.
Could you please give me a hint how does some custom control know which image is currently
opened in lightbox.
I can capture an image in
lightboxWillOpen
callback, but it will differ when user clics "Next".Here is a piece of code with comments:
Thank you!
The text was updated successfully, but these errors were encountered: