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

我照着你的说明,图片轮播下面的的点出现了,但下面点的动画会跟着箭头方向飞出去,而且点之间的切换,时间间隔感觉太长,有种黑点飞过去的感觉

Open marcos-boy opened this issue 7 years ago • 4 comments

u0cvtcxy qncz4kehg b

marcos-boy avatar Aug 03 '17 07:08 marcos-boy

这个我就不知道啦,我也是这两天刚学,不过你自己可以试着看看源码,代码量不是太多。 或者推荐你使用Swiper(https://github.com/leecade/react-native-swiper)

alamide0 avatar Aug 03 '17 12:08 alamide0

我也是碰到这个问题了

yohanceli avatar Aug 09 '17 06:08 yohanceli

react-native-swiper不支持android吧 @xiaosizhao

yohanceli avatar Aug 09 '17 06:08 yohanceli

这个是因为源码的renderIndicator是使用的自己的DefaultIndicator,而DefaultIndicator使用绝对布局和一个移动动画来实现指示器的移动,要解决你的问题就要自己去实现一个renderIndicator方法,直接把当前indicator的背景色设置为蓝色或者其他什么颜色,而不是用移动动画去控制

onlybenyang avatar Dec 05 '17 08:12 onlybenyang