react-native-looped-carousel
react-native-looped-carousel copied to clipboard
Switch page
Is there a method for changing dynamically the current page ? I tried with the currentPage props, but it only changes the initial page .
Thanks for this library !
Ok I did something like this :
<Carousel
autoplay={false}
ref={(carousel) => { this.carousel = carousel; }}
bullets>
<TouchableHighlight onPress={() => this.carousel._animateNextPage()}>
<Text>Next</Text>
</TouchableHightlight>
</Carousel>
If you want to, I can add a more generic example to the README ;)