ios and android
Which versions are you using:
On click the button go to the next slide
When i click to the button on the first time it jumps to the same slide again
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
-
react-native-swiper<Swiper
height={140}
showsButtons
>
<Text>Slide 1</Text>
<Text>Slide 2</Text>
</Swiper>
4.Click on the button to go to the next slide

me to
same here. Anyone found a workaround?
same here
solved on this https://github.com/leecade/react-native-swiper/issues/720
add the key to the Swiper componet
like this:
<Swiper
key={this.state.productImages.length} // focus
style={styles.swiper}
>
{swiperItems}
</Swiper>
or like this:
const swiperItems = this.state.productImages.map(item => {
return(
<Image
source={{uri: item.realpath}}
style={styles.swiperimage}
key={item.position} // focus
/>
)
})
Most helpful comment
720