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.

RefreshControl interferes with paginated horizontal ListView [Android] v0.28

See original GitHub issue

A list view of this form sometimes results in being stuck between pages.

<ListView
  horizontal={true}
  pagingEnabled={true}
  refreshControl={<RefreshControl/>}
  [...] />

Here is a complete code example. Note that it doesn’t work online, since rnplay’s version of react-native is too old.

When moving the finger to the side and then moving it down, the ListView gets stuck in the current position, because the refreshControl is triggered. The refresh action is not necessarily triggered. But the refresh symbol moves into view a little bit, which makes the ListView stick where it is.

I don’t know how to handle this properly, but the ListView should at least snap back to a valid page position here.

A general practical usecase of this would be a list of elements of which the user may refresh each one individually.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
CreepGincommented, Oct 14, 2016

I can confirm the same behavior on my end with RN 0.34.1 (tested on android).

Basically if you stick a RefreshControl on top of any Horizontal scrolling, things break.

0reactions
hramoscommented, Jul 21, 2017

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we’re automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Highest scored 'react-native-scrollview' questions
I have a horizontal flat list where each item is width:300 All I am trying to do is to get index of currently...
Read more >
@react-native/eslint-plugin-specs | Yarn - Package Manager
React Native brings React's declarative UI framework to iOS and Android. ... v0.70.6. Fixed. Fixed regression: @jest/create-cache-key-function dependency ...
Read more >
react-native/CHANGELOG.md - UNPKG
This version of Android Gradle plugin enforces JDK 11 for Android builds. Do not upgrade to AGP 7.1 as it is not supported...
Read more >
android-13.0.0_r12 to android-13.0.0_r16 AOSP changelog
This only lists changes submitted to the Android Open Source Project and does not ... 28ab2d31e7 : Version bump to TP1A.220624.005 [core/build_id.mk]
Read more >
Awesome React Native components, news, tools, and ...
ListView with pull-to-refresh and infinite scrolling for Android and iOS ... Animated Pagination For React Native's ListView, FlatList, and SectionList.
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