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.

Pull to refresh lagging.

See original GitHub issue

I have RLV with RefreshControl and when i refresh, refresh indicator starts to appear and disappear. my RLV jumping. This issue present only with small amount of elements.

` <View style={{minHeight: Dimensions.get(‘window’).height, width: Dimensions.get(‘window’).width}}>
{ this.state.dataProvider && this.state.data.length > 0 &&

                <RecyclerListView
                    ref={(ref) => this.recyclerView = ref}
                    canChangeSize
                    scrollViewProps={{
                        contentContainerStyle: {paddingBottom: (isIphoneX() ? 140 : 90)},
                        stickyHeaderIndices: [1],
                        refreshControl:  
                            <RefreshControl 
                                refreshing={this.state.refreshing} 
                                onRefresh={async () => {
                                    this.setState({
                                        refreshing: true
                                    });
                                    await this.loadEmployees();
                                    this.setState({
                                        refreshing: false
                                    });
                                }}
                            />
                    }}
                    layoutProvider={this._layoutProvider} 
                    dataProvider={this.state.dataProvider} 
                    rowRenderer={this._rowRenderer}                        
                />    
            }
        </View>

`

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:12

github_iconTop GitHub Comments

6reactions
xmuSistonecommented, Oct 10, 2019

@LVBK nice job! After reviewing the source code, i found that _pendingScrollToOffset is used for fix scroll offset after render() called. The _pendingScrollToOffset.y maybe below 0, so in the componentDidUpdate function i add a condition like this:

image

Hope this defect would be fixed in the next released version.

0reactions
AlexSirenkocommented, Nov 3, 2021

Lagging when items in the list fit less the container height

Read more comments on GitHub >

github_iconTop Results From Across the Web

refreshControl (pull to refresh) laggy? - ios - Stack Overflow
But when I leave the view controller (lets say A) and go to another one, then make a new A, the refresh control...
Read more >
Implementing Pull to Refresh Guide - CodePath Cliffnotes
Step 1: Wrap RecyclerView · Step 2: Update RecyclerView.Adapter · Step 3: Setup SwipeRefreshLayout.
Read more >
Is there a refresh lag within Lightning. - Salesforce Developers
Hi Everyone, I have just completed the Create Global Quick Actions unit within Trailhead and I have noticed that when I created global...
Read more >
Pull to Refresh in Swift 5 - Refresh control (Xcode 11, 2020)
In this video we will learn how to add pull to refresh control to our app in Swift 5 and Xcode 11. This...
Read more >
Really bad scrolling/UI lag after Android 12 update - Reddit
EDIT: SO THE ACTUAL PROBLEM HAS SOMETHING TO DO WITH TOUCHSCREEN INPUTS AND THE REFRESH RATE (SLEEPING) UNTIL IT IS BEING TOUCHED AGAIN....
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