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.

[v4] Pull to Refresh not working on iOS

See original GitHub issue

Bug

Environment info

Library Version
@gorhom/bottom-sheet 4.1.4
react-native 0.66.3
react-native-reanimated 2.2.4
react-native-gesture-handler 1.10.3

Steps To Reproduce

  1. Follow the instructions on https://gorhom.github.io/react-native-bottom-sheet/pull-to-refresh and provide refreshing and onRefresh props to BottomSheetScrollView.
  2. Android: pull to refresh works (albeit only when the bottom sheet is snapped at the topmost position).
  3. iOS: pull to refresh doesn’t work.

Describe what you expected to happen:

  1. Should work on both iOS and Android.

Reproducible sample code

https://snack.expo.dev/z1gI0579b

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
litinskiicommented, Apr 11, 2022

Same

0reactions
Gogncommented, Apr 19, 2022

I found a solution.

For some reasons it works both on Android and iOS if use like so:

<BottomSheetScrollView
 refreshing={isRefreshing}
 onRefresh={handleRefresh}
 refreshControl={<RefreshControl refreshing={isRefreshing} onRefresh={handleRefresh} />}
>
Read more comments on GitHub >

github_iconTop Results From Across the Web

pull to refresh not working with small amount of cells
I have a feed view controller (implemented with a UICollectionViewController) When i don't have enough cells to cover the hall screen height the...
Read more >
iOS Pull To Refresh Not Working on Specific Devices like ...
iOS Pull To Refresh Not Working on Specific Devices like iPhone X [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] ...
Read more >
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 >
How to Add Pull-to-Refresh to a Table View or Collection View
The refresh control is not part of the view hierarchy yet. We need to add it to the table view. Navigate to the...
Read more >
How to enable pull to refresh - a free SwiftUI by Example tutorial
iOS will automatically show an activity indicator for as long as it takes for your code to finish running. To get started, simply...
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