react-native-expandable-section-flatlist icon indicating copy to clipboard operation
react-native-expandable-section-flatlist copied to clipboard

scrollToIndex:undefined is a not function

Open 891294527 opened this issue 7 years ago • 3 comments

891294527 avatar Oct 23 '17 06:10 891294527

@891294527 感觉你应该能看懂中文,我看了一下文档和我的代码,这个问题是我的疏忽,这是属于flatList的方法,如果你是通过refs的方式去调用的话,确实应该出现这个问题,所有的flatList方法引用都会出现这个问题,当初未考虑到这个BUG,我会及时改进并加强这个组件,很谢谢你的提醒,我会及时修复这个问题。但你需要等我一段时间。

或者你可以看我的源代码,改动我的源代码,在源代码处就直接建立refs的方法引用,可以临时快速的解决这个问题。

this is a bug, This is my negligence, scrollToIndex is the method of FlatList, But I didn't build a reference to him, and your call couldn't get this method directly, so now you don't get scrollToIndex, I will fix the bug, and strengthen the component, but you might have to wait for me for a while, or you can build refs directly to refer to this method In my source code, temporary solution to this problem.

Thank you

cuiyueshuai avatar Oct 23 '17 10:10 cuiyueshuai

Thank you for the reply! 目前用外层ScrollView解决了列表项跳转问题,另index文件第62行prop少了个s,以致headerOnPress方法无效

891294527 avatar Oct 23 '17 11:10 891294527

@891294527 我太粗心了,我已经修复了这个小BUG,至于那个方法引用的问题,我再去想想如何做更好,另外安排时间去改,然后再测试一下各种方法运行会如何运行,同时很谢谢你的帮助和建议。

cuiyueshuai avatar Oct 24 '17 07:10 cuiyueshuai