React-native-swiper: it does not autoplay and pagination dot does not work when scrolling pages in ios

Created on 1 Feb 2018  ·  12Comments  ·  Source: leecade/react-native-swiper

Which OS ?

ios 11.2.5

Version

Which versions are you using:

  • react-native-swiper v? 1.5.13
  • react-native v0.?.? 0.47.2

Expected behaviour

it does work well in ios and android

Actual behaviour

it does work well in android but it does not work well in ios

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
-

Steps to reproduce

1.i setup swiper like this:
autoplay={true}
activeDotColor={'white'}
autoplayTimeout={3}>
{this.renderBannerView()}

2.i set 3 in this.renerBannerView() function
3.when i use

Most helpful comment

In my case, solved by adding length of array, as mentioned in #720

<Swiper
   key={this.state.image.length}
   style={styles.swiper}
>

All 12 comments

need help
when i use

need help network image url

@yupuyang 大哥,都是中国人,就说中文吧,你也遇到这个情况了?

Yes, facing the same issue on iOS

In my case, solved by adding length of array, as mentioned in #720

<Swiper
   key={this.state.image.length}
   style={styles.swiper}
>

wocao, 我的是网络请求回来不会自动滚动了,楼上正解啊

wocao, 我的是网络请求回来不会自动滚动了,楼上正解啊

nice !!!

流皮

66666!

中国开发包围这个问题了

In my case, solved by adding length of array, as mentioned in #720

<Swiper
   key={this.state.image.length}
   style={styles.swiper}
>

i love you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruben-kasaz picture ruben-kasaz  ·  3Comments

tibic picture tibic  ·  3Comments

tokict picture tokict  ·  3Comments

agzuniverse picture agzuniverse  ·  3Comments

AndriiBoiko picture AndriiBoiko  ·  3Comments