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.

iOS refresh control doesn't show up after initial pull to refresh

See original GitHub issue

On iOS, the refresh control won’t show if the refresh prop changes outside of a manual pull to refresh.

React Native version: 0.60.3
System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
    Memory: 50.39 MB / 8.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.6.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
    Android SDK:
      API Levels: 23, 24, 25, 26, 27, 28
      Build Tools: 23.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.1, 28.0.2, 28.0.3
      System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64
, android-28 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.1 AI-173.4907809
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6 
    react-native: 0.60.3 => 0.60.3 
  npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7

Steps To Reproduce

  1. Open this snack https://snack.expo.io/@kingdaro/scrollview-refresh-control-bug
  2. Tap “trigger refresh”, the control will show up as expected
  3. Pull to refresh, the control shows up as expected
  4. Tap “trigger refresh” again, the control does not show up

Describe what you expected to happen:

The refresh control should always show if refreshing is true.

Snack, code example, screenshot, or link to a repository: https://snack.expo.io/@kingdaro/scrollview-refresh-control-bug

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

2reactions
ca057commented, Mar 23, 2020

The same issue occurs on my side. As far as I can see, this PR describes the same behavior and should fix it: https://github.com/facebook/react-native/pull/27397, so hopefully this will be fixed with the next release.

1reaction
itsMapleLeafcommented, Jun 21, 2020

I ran the snack with expo 37, ran through the same steps, bug still happens. Unless 37 isn’t on the latest RN version, this still happens

Read more comments on GitHub >

github_iconTop Results From Across the Web

UIRefreshControl not firing target… | Apple Developer Forums
I have navigation bar controller and inside one of the tab table view controller with pull down refresh action to refresh data from...
Read more >
Swift Pull to Refresh doesn't Show - Stack Overflow
In func handleRefresh() initiate the refreshing by using refreshControl.beginRefreshing() then remove all the objects, reload the tableView, end ...
Read more >
Pull to refresh in SwiftUI with refreshable - Sarunw
SwiftUI got a native way to add UIRefreshControl in iOS 15. Let's find out how to add it in the list view and...
Read more >
RefreshControl - Pull to Refresh in React Native Apps - Enappd
Learn how to implement Pull to Refresh functionality in React Native apps ... First, make sure you have all pre-requisites to create a...
Read more >
React Native Pull-to-Refresh: Make Refreshing Easy for Users
Pull -to-refresh is a touchscreen gesture that retrieves all the latest data and updates the currently available data in the app. You initiate...
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