onPull React Native ScrollView
onPull React Native ScrollView
ScrollView
中的 Props
是什么?
或者换句话说
- 当我们到达
ScrollView
中的第一项时,Prop
应该 运行 哪个?
例如
<ScrollView
scrollEnabled={this.state.scrollEnabled}
onScroll={(y) => {
if (y.nativeEvent.contentOffset.y <= 0 ) {
//
}
我不完全确定你想要实现什么,但我认为你正在寻找 refreshControl 道具。
查看文档:https://facebook.github.io/react-native/docs/scrollview#refreshcontrol
ScrollView
中的Props
是什么?
或者换句话说
- 当我们到达
ScrollView
中的第一项时,Prop
应该 运行 哪个?
例如
<ScrollView
scrollEnabled={this.state.scrollEnabled}
onScroll={(y) => {
if (y.nativeEvent.contentOffset.y <= 0 ) {
//
}
我不完全确定你想要实现什么,但我认为你正在寻找 refreshControl 道具。
查看文档:https://facebook.github.io/react-native/docs/scrollview#refreshcontrol