此方法可以跳转到页面顶部
this.refs.flatlist.scrollToIndex({viewPosition: 0, index: 0});
此方法可以跳转到页面底部
this.refs.flatlist.scrollToEnd();
此方法可以跳转到页面顶部
this.refs.flatlist.scrollToIndex({viewPosition: 0, index: 0});
此方法可以跳转到页面底部
this.refs.flatlist.scrollToEnd();
本文标题:FlatList中的scrollToEnd, scrollToI
本文链接:https://www.haomeiwen.com/subject/qwullxtx.html
网友评论