leecade / react-native-swiper

The best Swiper component for React Native.
MIT License
10.4k stars 2.34k forks source link

the first item will flash when the second loop start, only appear in android #1267

Open weixin21 opened 3 years ago

weixin21 commented 3 years ago

Which OS ?

android only

Version

Which versions are you using:

Expected behaviour

loop does not flash

Actual behaviour

when i set loop={true}, the first item will flash when the second loop start, only appear in android

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

1.use the demo which provide in README.md 2.set horizontal={false} 3.the issues will appear in android

SunshowerC commented 3 years ago

+1

KirillPerepelitsa42 commented 3 years ago

The same issue

452MJ commented 3 years ago

+1

MinWangWTFSSD commented 3 years ago

+1

nagmasalaria626 commented 3 years ago

I have same issue in react-native-swiper library. In the app the first screen flashes before render the second screen. please help me

kikikuk commented 3 years ago

+1

showwell0120 commented 3 years ago

This issue can refer to #1200 That works for me.

thanhtuando commented 3 years ago

Bug iOS same.

vishnuc commented 3 years ago

+1

huhuang03 commented 3 years ago

After read the soruce code, I think it's not easy to fix this.

Because the inner is a ScrollView. And the loop effect is by add a fake view to the first and the last. And quick scroll to the right place when scrool to the fake view.

For example, if the child view is ["1", "2", "3"], when loop=true, the child view is ["3", "1", "2", "3", "1"], and when scroll to the first "3"[index = 0], then scroll to the "3"[index=3] quickly, so the flash happed.

yexianli commented 2 years ago

+1

RogerWenXin commented 2 years ago

removeClippedSubviews={false} u r welcome!

MrGoove commented 1 year ago

removeClippedSubviews={false} u r welcome!

it works for me , thanx

olartbaraq commented 11 months ago

Thanks a bunch, it works for mw

gaofeng222 commented 1 month ago

removeClippedSubviews={false} u r welcome!

it works for me , thanx

tks,deal