-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offsetting RefreshControl on iOS via progressViewOffset #10718
Comments
This would be nice to have! Looking forward to the PR @scarlac |
@brentvatne: Done. Should I include the documentation change in this PR as well? |
This is a very usefull feature, why it has not be merged till now ? @scarlac @brentvatne |
@mountainmoon Too long time passed so I had to move on. I'm now working on other projects, so I unfortunately don't have the time to fix the issue that was raised by @arsen If you can fix the issue I think @hramos will be willing to reopen it |
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:
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. |
Summary: Previous `contentOffset` can be invalid for a new layout and overscroll the ScrollView, so the diff fixes that. Also documented here: #13566 Reviewed By: mmmulani Differential Revision: D5414442 fbshipit-source-id: 7de1b4a4571108a37d1795e80f165bca5aba5fef
Still an issue on 0.55. The workarounds are pretty bad. |
@Bonobomagno happy to re-open the issue if you are ready to send a PR. |
Summary: Fixes #10718, bringing `progressViewOffset` support to iOS. Thanks to Taylor123 for the initial PR upon which this fix is based. ## Changelog [iOS] [Fix] - `progressViewOffset` prop of `RefreshControl` and `VirtualizedList` now works on iOS Pull Request resolved: #30737 Test Plan: Tested with quick-and-dirty sample app.  ## Documentation The corresponding documentation update PR can be found [here](facebook/react-native-website#2441). Reviewed By: kacieb Differential Revision: D26813977 Pulled By: sammy-SC fbshipit-source-id: 45cc5a647d70e44a29c6391b7586cb41ca011bef
Summary: Fixes facebook#10718, bringing `progressViewOffset` support to iOS. Thanks to Taylor123 for the initial PR upon which this fix is based. ## Changelog [iOS] [Fix] - `progressViewOffset` prop of `RefreshControl` and `VirtualizedList` now works on iOS Pull Request resolved: facebook#30737 Test Plan: Tested with quick-and-dirty sample app.  ## Documentation The corresponding documentation update PR can be found [here](facebook/react-native-website#2441). Reviewed By: kacieb Differential Revision: D26813977 Pulled By: sammy-SC fbshipit-source-id: 45cc5a647d70e44a29c6391b7586cb41ca011bef (cherry picked from commit 310a6bc)
Description
An object class check for
RefreshControl
is hard-coded intoScrollView
making it impossible to offset the pull-to-refresh loader via JS. Tinkering with thestyle
prop onRefreshControl
can cause crashes and strange visual artifacts. A native solution seems the only near-term viable option besides re-implementing everything from scratch.I have a fix locally to make the Android-only property
progressViewOffset
onRefreshControl
work on iOS as well.I will submit a PR as soon as possible. Please reply here if there is any disinterest in resolving this issue by adding iOS support via
progressViewOffset
Reproduction
refreshControl={<RefreshControl progressViewOffset={-13}/>}
property.The indicator does not move according to the
progressViewOffset
property onRefreshControl
.Additional Information
The text was updated successfully, but these errors were encountered: