为了使用轮播图导入了这个第三方库,但是出现一个莫名其妙的bug:

image

可我寻思着没用这个viewpageandroid啊,而且看github上两个月前还在更新,应该不存在过时的说法,也没有搜到跟我类似的问题,很郁闷。

在github的issue里找到了方法:

I removed 1.5.14 (yarn remove react-native-swiper) then installed the nightly with yarn add react-native-swiper@nightly and it's working on Android now.

这里我也收录了一些开发过程中的其他问题,解决方法及仅供参考:
https://ui-mario.github.io/2019/12/06/RN%E5%A1%AB%E5%9D%91/


Livio
1 声望0 粉丝