React-native-swiper: Show nothing on RN 0.47.1

Created on 10 Aug 2017  路  7Comments  路  Source: leecade/react-native-swiper

Version

Which versions are you using:

  • react-native-swiper v1.5.8
  • react-native v0.47.1

Expected behaviour

Actual behaviour

It show when I render swiper as an item of FlatList.
But when I render it along, show nothing.

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
1.
2.
3.

Need answer from author

Most helpful comment

I just upgraded from 1.5.4 to 1.5.8 and had the same problem. No pages rendered. I solved this by adding the containerStyle prop to the Swiper and setting it to the following style:

swiperWrapper: {
flex: 1,
height: '100%',
width: '100%',
alignSelf: 'stretch',
backgroundColor: '#fff',
}

All 7 comments

I just upgraded from 1.5.4 to 1.5.8 and had the same problem. No pages rendered. I solved this by adding the containerStyle prop to the Swiper and setting it to the following style:

swiperWrapper: {
flex: 1,
height: '100%',
width: '100%',
alignSelf: 'stretch',
backgroundColor: '#fff',
}

@DigohD Thanks. I'm using react-native-snap-carousel now. It has flatlist version.

With the last version of RNSwiper, 1.5.9 , it should be working. Can you try again @DigohD or @ittianyu ?

Tried on 1.5.9, with and without @DigohD suggestion as new prop to my Swiper:

containerStyle={{
  flex: 1,
  height: '100%',
  width: '100%',
  alignSelf: 'stretch',
  backgroundColor: '#fff',
}}

Still, the Swiper component doesn't show in my app, with a black bar that was below the Swiper now at the top. As I wrote in https://github.com/leecade/react-native-swiper/issues/494

@fungilation Can you fork the project and reproduce your bug in one of the examples?
I do not succeed to reproduce it on my own...

Thanks. Works on 1.5.9.
I hope you guys can add a version based on FlatList.

You can work on it if you want to @ittianyu ;)
Or at least, create a new issue.
I closed this one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tokict picture tokict  路  3Comments

wrannaman picture wrannaman  路  3Comments

kliuj picture kliuj  路  3Comments

commit-master picture commit-master  路  3Comments

diegolmello picture diegolmello  路  3Comments