react-native-swiper
react-native-swiper copied to clipboard
the first item will flash when the second loop start, only appear in android
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
+1
The same issue
+1
+1
I have same issue in react-native-swiper library. In the app the first screen flashes before render the second screen. please help me
+1
This issue can refer to #1200 That works for me.
Bug iOS same.
+1
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.
+1
removeClippedSubviews={false} u r welcome!
removeClippedSubviews={false} u r welcome!
it works for me , thanx
Thanks a bunch, it works for mw