1

ScrollToLocation to top for sectionList 滚动到超过最顶部项目的空白页面。

我只想滚动到最上面的项目,但它滚动到最上面的项目的空白页

我用了一些不同的东西

1)

this.sectionListRef.scrollToLocation({ sectionIndex: 0, itemIndex: 0 })

2)

this.sectionListRef.scrollToLocation({ sectionIndex: 0, itemIndex: -1 })

3)

this.sectionListRef.scrollToLocation({ sectionIndex: 0, itemIndex: 0, viewOffset: 200 })
4

0 回答 0