react-native-looped-carousel: animateToPage and _animatePreviousPage not working
_animatePreviousPage()
animateToPage(0)
above two methods are not working properly when isLooped = {false} if I set this to isLooped = {true} then it’s works fine.
But I need isLooped = {false} and also need that method also. How can I solve my problem?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Fix placeCritical re #183 — committed to phil-r/react-native-looped-carousel by phil-r 6 years ago
Great! Thanks for creating an issue!
Hey 👋 You can try out this example: https://snack.expo.io/@phil/carousel-animate-to-page-example
The key parts are:
ref={ref => (this.carousel = ref)}in Carousel propsonAnimate={i => this.carousel.animateToPage(i)}in Page props@MSSPL-PiyaleeMaiti can you check
0.1.13, issue should be fixed 🎉@MSSPL-PiyaleeMaiti make sure you’re on
0.1.12version