React-native-swiper: On Android it starts with an empty slide

Created on 27 May 2016  ·  7Comments  ·  Source: leecade/react-native-swiper

While it is working perfectly on iOS, on android the swiper comes up with an empty first slide. I have to swipe from right to left to get the real first slide. When swiping back, also an empty slide will be shown as i would setup an additional empty slide.

Can anyone confirm?

I will provide an example later.

Most helpful comment

I have the same promble, it show empty when only one item on Android, but it's working perfectly on iOS

Update: I fix it by show item view directly if items length is 1.

All 7 comments

After update to 1.4.5 the first slide on android isnt an empty white screen anymore as i reported in this issue initially, but it starts with the last slide. So this one relates to https://github.com/leecade/react-native-swiper/issues/157

@itinance set initial state to two empty item like:
this.state ={ items:[{},{}] }
try it out.it works for me.

I have the same promble, it show empty when only one item on Android, but it's working perfectly on iOS

Update: I fix it by show item view directly if items length is 1.

I've encountered the same white screen problem. As I enter a new page, and start render the swiper in android, it show white screen in swiper as the first slide. After I scroll the white screen disappeared.
This situation happen at
swiper: v1.5.4,
react-native: 0.34.1

Can anyone help please? @leecade

+1

+1

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chetanparakh picture chetanparakh  ·  3Comments

wrannaman picture wrannaman  ·  3Comments

diegolmello picture diegolmello  ·  3Comments

ruben-kasaz picture ruben-kasaz  ·  3Comments

tibic picture tibic  ·  3Comments