Closed ninamanalo19 closed 7 years ago
Hi @ninamanalo19 thanks for reporting this, however there's already a way to achieve this. You have to get a reference to the Carousel like this:
<Carousel ref={ c => this.carousel = c }>
... rest of your code here
Then you can do whenever you want:
this.carousel.goToPage(0); //or any valid index
I'll close this PR, let me know if this doesn't work for you.
thanks @machadogj
… carousel items