React-native-swiper: Flashing after update

Created on 12 Oct 2017  路  9Comments  路  Source: leecade/react-native-swiper

Which OS ?

  • IOS

Version

Which versions are you using:

  • react-native-swiper v?
    "^1.5.4" (I also tried installing/building from the latest master)
  • react-native v0.?.?
    "^0.47.2"
  • react v?
    "^16.0.0-alpha.12"

Since updating my React version of my app, the Swiper intro screen has been exhibiting very strange behavior. I've captured 3 screen records:
(Sorry for the giant gifs)

  • When the app loads, the swiper screen is just white and requires reboot
    white_screen

  • When the app loads, the swiper screen flashes and requires reboot
    flashy

  • When the app loads, the swiper screen functions properly
    working

I've poked around a bit in the issues and couldn't find any other reports of this. Have you seen/heard of this before?

Most helpful comment

@skipsuva thank you! it's working great now using the library you linked

All 9 comments

I'm having a similar issue where it flashes back to the first screen before rendering the second, also after a recent update.

@skipsuva I fixed my issue. In my case, it was due to a key prop that I put on the swiper to make sure it updates properly, but the key I provided it updated too often (depended on the index), so removing part of it fixed it for me.

@JulianKingman interesting - I've since switched to a different library, but I suspect the issue I was experiencing may be a different cause. Cool solution though!

I'm having the same issue.

@skipsuva what library did you end up using?

@skipsuva thank you! it's working great now using the library you linked

Same problem here. I really like this library but this issue is a deal breaker

I highly recommend react-native-sideswipe, it鈥檚 a very lightweight, reliable, and well engineered alternative.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chetanparakh picture chetanparakh  路  3Comments

AndrewSouthpaw picture AndrewSouthpaw  路  3Comments

itinance picture itinance  路  3Comments

Liqiankun picture Liqiankun  路  3Comments

tokict picture tokict  路  3Comments