我有个问题。
在 React Native 中向下滚动 ScrollView 底部时如何调用函数?
请帮我。
非常感谢!
最佳答案
有效!
var windowHeight = Dimensions.get('window').height,
height = e.nativeEvent.contentSize.height,
offset = e.nativeEvent.contentOffset.y;
if( windowHeight + offset >= height ){
console.log('End Scroll')
}
关于react-native - 在 React Native 中滚动到 ScrollView 组件底部时调用事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39909154/