react-native 自动滚到屏幕顶部,模仿微信朋友圈评论自动定位
<ScrollView
showsVerticalScrollIndicator={false}
style={[styles.column,styles.Flex]}
ref={(r) => this.scrollview = r}
自定滑到顶部代码:
this.scrollview.scrollTo({x:0,y: 0,animated:true});
本博客地址: wukong1688
本文原文地址:https://www.cnblogs.com/wukong1688/p/10911222.html
转载请著名出处!谢谢~~