leecade / react-native-swiper

The best Swiper component for React Native.
MIT License
10.37k stars 2.35k forks source link

Flashing after update #612

Open skipsuva opened 6 years ago

skipsuva commented 6 years ago

Which OS ?

Version

Which versions are you using:

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)

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?

JulianKingman commented 6 years ago

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

JulianKingman commented 6 years ago

@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.

skipsuva commented 6 years ago

@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!

lefoy commented 6 years ago

I'm having the same issue.

lefoy commented 6 years ago

@skipsuva what library did you end up using?

skipsuva commented 6 years ago

@lefoy https://github.com/archriss/react-native-snap-carousel

lefoy commented 6 years ago

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

jqn commented 5 years ago

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

JulianKingman commented 5 years ago

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