react-native-spring-scrollview
react-native-spring-scrollview copied to clipboard
v4.0分支出现错误 Cannot read property 'contentOffset' of undefined
很喜欢大佬做的插件,确实在3.0版本会出现滑动点击过于灵敏的问题,于是把largelist和springscrollview都换成4.0分支的版本,但是使用4.0会出现Cannot read property 'contentOffset' of undefined的报错,注释掉SpringScrollView.js中useAnimatedReaction hook里面这行代码:823: if (props.onScroll) runOnJS(props.onScroll)(offset); 就没问题了,不过也导致不能滑动列表了。
这里LargeList只传入了data,heightForIndexPath和renderIndexPath,在3.0下没问题,4.0就报错了。
其中remainted版本和分支中package.json的版本一致,如果升级到最新版本,报的错是(offset: {x: number, y: number}, previous: {x: number, y: number}) => {这行代码附近的unexpected token错误,具体错误忘记记录了。
希望大佬能解答下,或者告知下大概是哪个地方的问题,我这边自己研究下解决,感谢感谢!(PS:另外能否告知下4.0版本大概什么时候能完工呢,因为最近做新项目,眼巴巴等着这个插件更新4.0。。。找遍github感觉只有这个插件能解决大列表的需求了)
the same issue !!
哎,目前进了某为没有时间做了。
same issue
dead library