react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

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

Open weixin21 opened this issue 3 years ago • 15 comments

Which OS ?

android only

Version

Which versions are you using:

  • react-native-swiper v1.6.0
  • react-native v0.61.2
  • huawei honor 30s
  • android 10

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.

  • https://user-images.githubusercontent.com/26846424/111100787-7bd99880-8583-11eb-9860-c60f690f940e.mov

Steps to reproduce

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

weixin21 avatar Mar 15 '21 03:03 weixin21

+1

SunshowerC avatar Apr 08 '21 09:04 SunshowerC

The same issue

KirillPerepelitsa42 avatar Apr 26 '21 09:04 KirillPerepelitsa42

+1

452MJ avatar Apr 28 '21 03:04 452MJ

+1

MinWangWTFSSD avatar Apr 28 '21 04:04 MinWangWTFSSD

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

nagmasalaria626 avatar May 05 '21 09:05 nagmasalaria626

+1

kikikuk avatar May 26 '21 14:05 kikikuk

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

showwell0120 avatar Jun 02 '21 06:06 showwell0120

Bug iOS same.

thanhtuando avatar Jun 11 '21 17:06 thanhtuando

+1

vishnuc avatar Jul 03 '21 08:07 vishnuc

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.

huhuang03 avatar Aug 23 '21 05:08 huhuang03

+1

yexianli avatar Sep 30 '21 01:09 yexianli

removeClippedSubviews={false} u r welcome!

RogerWenXin avatar Mar 10 '22 05:03 RogerWenXin

removeClippedSubviews={false} u r welcome!

it works for me , thanx

MrGoove avatar Dec 04 '22 13:12 MrGoove

Thanks a bunch, it works for mw

olartbaraq avatar Sep 24 '23 14:09 olartbaraq