react-native-largelist icon indicating copy to clipboard operation
react-native-largelist copied to clipboard

Group中如何判别当前的cell离开了屏幕范围?

Open bengele opened this issue 5 years ago • 2 comments

往上滑动,离开屏幕范围; 往下滑动,离开屏幕范围;

Group中如何依据offsetY的值来判别?

bengele avatar Aug 27 '19 13:08 bengele

目前可以在这里

Group.js

  update(index: number, init: boolean) {
    if (index < 0 || index >= this.props.indexes.length || this._currentIndex === index) return;
    this._currentIndex = index;
    !init && this.forceUpdate();
  }

改变了就表示之前的离开了屏幕,显示了新的。但是请注意这个不是很准确。

ATShiTou avatar Aug 30 '19 03:08 ATShiTou

这里显然不是和屏幕相关的计算,而是和group复用相关的计算

fallending avatar Apr 08 '20 15:04 fallending