React-native-swiper: The dots not working !! please help

Created on 8 Oct 2018  路  1Comment  路  Source: leecade/react-native-swiper

Which OS ?

Android

Version

Which versions are you using:

  • react-native-swiper v1.5.13
  • react-native v0.55.4

Expected behaviour

The dots will move . Like an example.
image

Actual behaviour

The dots can't move . and the onMomentumScrollEnd unable to monitor sliding
<Swiper height={$F.height} onMomentumScrollEnd={(e, state, context) => console.log('index:', state.index)} dot={( <View style={styles.dot} /> )} activeDot={( <View style={styles.activeDot} /> )} paginationStyle={{ bottom: $F.scale(10), left: null, right: $F.scale(10), }} loop={false} > { this.state.swiperList.map((v, i) => (<SwiperView key={i} cont={v.content} imgsrc={v.img} showCourse={()=>this._changeModal.bind(this,true,'CourseList',v ,i)} />)) } </Swiper>
image

And the onTouchStart={(e, state, context) => {console.log(state); }} is undefined

Most helpful comment

Initial data can not be empty.

>All comments

Initial data can not be empty.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Liqiankun picture Liqiankun  路  3Comments

nicolabortignon picture nicolabortignon  路  3Comments

itinance picture itinance  路  3Comments

chetanparakh picture chetanparakh  路  3Comments

kylehagler picture kylehagler  路  3Comments