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

ListView onEndReached only trigger once

Open mhfc007 opened this issue 11 years ago • 6 comments

1, pull down onEndReached triggered

2, pull up

3, pull down , can't trigger onEndReached

mhfc007 avatar Sep 14 '15 08:09 mhfc007

yes, we met the same problem.

ListView's Source:

if (nearEnd &&
        this.props.onEndReached &&
        this.scrollProperties.contentLength !== this._sentEndForContentLength &&
        this.state.curRenderedRowsCount === this.props.dataSource.getRowCount()) {
      this._sentEndForContentLength = this.scrollProperties.contentLength;
      this.props.onEndReached(e);
    } else {
      this._renderMoreRowsIfNeeded();
    }

because, this.scrollProperties.contentLength !== this._sentEndForContentLength

return false

hufeng avatar Sep 14 '15 09:09 hufeng

I am seeing the same problem too

jhau avatar Sep 16 '15 06:09 jhau

I've noticed the same problem, and I can't really find a way to fix it.

simondelacourt avatar Oct 16 '15 09:10 simondelacourt

Same problem here

pangers avatar Oct 21 '15 02:10 pangers

PR already open on https://github.com/facebook/react-native/pull/2440.

paramaggarwal avatar Oct 27 '15 04:10 paramaggarwal

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/listview-onendreached-only-trigger-once-

ProductPains helps the community prioritize the most important issues thanks to its voting feature. It is easy to use - just login with GitHub.

Also, if this issue is a bug, please consider sending a PR with a fix. We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

mkonicek avatar Apr 10 '16 16:04 mkonicek