Pull to refresh lagging.
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:3
- Comments:12
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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:
Hope this defect would be fixed in the next released version.
Lagging when items in the list fit less the container height