I am using react-native scrollview
to slide
my imageBackground
.
I am using pagingEnabled
to swipe the images. But is there a way I could get number of the index
when ever I swipe?
I am using the scroll view like the code below. Adding pagingEnabled
will make the scrollview work like a swiper
but I don't know how to get the index
.
<ScrollView horizontal={true} pagingEnabled={true}>
{this.createScrollImageSources(this.state.image)}
</ScrollView>