We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to get which item is showing or brought to front now . Is it possible through current index? There is no sample provided. Can you help on it ?
The text was updated successfully, but these errors were encountered:
@shrinandhini2801 You need to keep a reference to your carousel's instance like this :
<Carousel ref={(carousel) => { this._carousel = carousel; }} // other props />
Then, whenever needed, you can call the following:
if (this._carousel) { alert(this._carousel.currentIndex); }
If you need to update your state every time a change of slide occurs, make sure to use the onSnapToItem prop instead.
onSnapToItem
Sorry, something went wrong.
No branches or pull requests
I need to get which item is showing or brought to front now . Is it possible through current index? There is no sample provided. Can you help on it ?
The text was updated successfully, but these errors were encountered: