react-native-swiper的一个坑:ViewPagerAndroid has been removed
文章目录
为了使用轮播图导入了这个第三方库,但是出现一个莫名其妙的bug:

可我寻思着没用这个viewpageandroid啊,而且看github上两个月前还在更新,应该不存在过时的说法,也没有搜到跟我类似的问题,很郁闷。
在github的issue里找到了方法:
I removed 1.5.14 (yarn remove react-native-swiper) then installed the nightly withyarn add react-native-swiper@nightlyand it's working on Android now.
这里我也收录了一些开发过程中的其他问题,解决方法及仅供参考:
https://ui-mario.github.io/2019/12/06/RN%E5%A1%AB%E5%9D%91/
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论