Closed hxzAugustinus closed 3 years ago
1、只有安卓有问题吗,iOS有问题吗 2、example中有此问题吗
ios还没试,example没问题正常的,我还新建了一个rn0.61.5 , 只包含这个依赖也是正常运行 ,但在我的项目就不行感觉是和什么东西冲突了,但想了半天没想出和什么冲突
ios还没试,example没问题正常的,我还新建了一个rn0.61.5 , 只包含这个依赖也是正常运行 ,但在我的项目就不行感觉是和什么东西冲突了,但想了半天没想出和什么冲突
新建一个RN0.61.5的项目,然后把你出问题的能复现出来的Demo发给我,我修复一下,如果无法复现,我这边也无从下手
@jiasongs 如上图 如果原生部分也引入SmartRefreshLayout
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.3'
会导致我这种情况出现
SmartRefreshLayout
把这个Demo发给我吧
在 example 里的 dependencies 里 添加
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.3'
然后运行就可以复现; 我这边访问Github 太卡了,demo发不动; 本质上就是引入重复导致的,我这边原生部分也引入了这个库
在 example 里的 dependencies 里 添加
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.3'
然后运行就可以复现; 我这边访问Github 太卡了,demo发不动
好的,我晚上回家试一下
其实不用试,是导入不同版本导致的 ;我修改我的原生部分的版本号
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.3'
为
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
保持和你的依赖版本一致就没问题了
其实不用试,是导入不同版本导致的 ;我修改我的原生部分的版本号
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.3'
为
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
保持和你的依赖版本一致就没问题了
可能是SmartRefreshLayout:1.1.3改了一些东西,我需要适配下
我安装依赖后,把example里的NormalRefreshHeader.js 和 app.js直接复制到我的项目里时 直接运行,结果为下拉刷新正常工作,但是上拉滚动翻页时发现无法滚动或则滚动的非常难触发 https://github.com/hxzAugustinus/gitProject/blob/master/movic/video(11).MP4
当替换
为
时,发现上拉翻页滚动正常了; https://github.com/hxzAugustinus/gitProject/blob/master/movic/video(10).MP4
我的package.json