machadogj / react-native-carousel-control

React Native Carousel control with support for iOS and Android
MIT License
247 stars 55 forks source link

Allows current page of carousel to be externally set i.e. it could be… #21

Closed graememac closed 7 years ago

graememac commented 7 years ago

… set by a slider or a dropdown menu

emmajam commented 7 years ago

You could also just add a reference to the Carousel Component to externally expose the goToPage function.

For example,

somefunction() { 
    this.refs.carousel.goToPage(selectedPage);
}
...
<Carousel
    ref={"carousel"}
/>