Open lXSPandora opened 5 years ago
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
/>
)
})
Which OS ?
ios and android
Version
Which versions are you using:
Expected behaviour
On click the button go to the next slide
Actual behaviour
When i click to the button on the first time it jumps to the same slide again
How to reproduce mit>
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
Steps to reproduce
react-native-swiper
4.Click on the button to go to the next slide