Props
入ScrollView
?或者换句话说
Prop
当我们到达第一个项目时应该运行哪个ScrollView
?例如
<ScrollView
scrollEnabled={this.state.scrollEnabled}
onScroll={(y) => {
if (y.nativeEvent.contentOffset.y <= 0 ) {
//
}
我不完全确定你想要实现什么,但我认为你正在寻找 refreshControl 道具。
查看文档:https : //facebook.github.io/react-native/docs/scrollview#refreshcontrol
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句