question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OnScroll, RefreshControl and onEndReached of nested ListView not working

See original GitHub issue

Same issue as #20.

My problem is the following, I have my parallax view, and inside it I have a Tab Bar, this Tab Bar is composed by 4 tabs, each scenes of each tabs contains a ListView with an InfiniteScrollView, the problem is when I reach the end the onLoadMoreAsync function isn’t called, I try to pass the onScoll function thought all child, but I stil have the problem. I also try to run the RefreshControl of my ListView, but it also not working. Because of the position of my TabBar and it’s content I can’t put my ParallaxView as a ScrollComponent.

Any idea ? 😃

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

2reactions
thanatosxcommented, May 23, 2016

@magrinj

<ParallaxScrollView
        onScroll={(e) => {
            if (e.nativeEvent.contentOffset.y + e.nativeEvent.layoutMeasurement.height + 20 > e.nativeEvent.contentSize.height){
                if (!this.overThreshold) {
                    this._onEndReached();
                    this.overThreshold = true;
                }
            }else {
                if (this.overThreshold) this.overThreshold = false;
            }
            if (e.nativeEvent.contentOffset.y <= 0) {
                this.refs.pullToRefresh.getInnerViewNode().setNativeProps({ enabled: true });
            } else {
                this.refs.pullToRefresh.getInnerViewNode().setNativeProps({ enabled: false });
            }
    }}
/>
0reactions
thamecommented, Jan 22, 2018

I’m getting an undefined error on this.refs.pullToRefresh.getInnerViewNode. Trying to apply this to a Flatlist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OnScroll, RefreshControl and onEndReached of nested ...
OnScroll, RefreshControl and onEndReached of nested ListView not working. ... My problem is the following, I have my parallax view, and inside it...
Read more >
ScrollView PullDown - react native - Stack Overflow
So my approach was trying to use the onScroll method to detect the changes from scroll view. onScroll={this.handleScroll} handleScroll(event) { ...
Read more >
react native refresh list when scroll Code Example - Code Grepper
react native refresh flatlist on swipe down · React-Native: RefreshControl on ScrollView with nested View won't show animation · swap scroll right in...
Read more >
ScrollView - React Native
FlatList is also handy if you want to render separators between your items, multiple columns, infinite scroll loading, or any number of ...
Read more >
Refresh Control not working on Android -React Native-React ...
renderPostItem} onEndReached={this.onEndReached} scrollEnabled={scrollEnabled} onEndReachedThreshold={0.3} contentContainerStyle ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found