-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[SectionList] scrollToLocation scrolls past content on iOS #18098
Comments
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
This issue is still relevant to RN 0.55.4 https://snack.expo.io/@jpunt/scrolltolocation
|
Got the same issue on IOS. After fiddling around I found a temporary solution for my app: this.sectionListRef.scrollToLocation({
itemIndex: -1 , // IOS only
sectionIndex: index,
}) After this the |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
You should be able to use |
Summary: Fixes facebook#18098 Pull Request resolved: facebook#21577 Differential Revision: D13761884 Pulled By: cpojer fbshipit-source-id: a096d69c589815d00754427fb575de0d8d0b595f
Summary: Changelog: ---------- [iOS][fixed] Fixed overscroll behavior on iOS virtualized lists (Fixes facebook#18098) Pull Request resolved: facebook#23181 Differential Revision: D13838579 Pulled By: cpojer fbshipit-source-id: 2ec5787218ecca0e01aaf31bfbb7d630cf9f1f09
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 8.2.1
Yarn: 0.27.5
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-native: ^0.53.3 => 0.53.3
Steps to Reproduce
Implement a
SectionList
and usescrollToLocation
to scroll to the last section.Expected Behavior
It scrolls to the last section, while making sure it doesn't scroll past the content. On Android this works as expected:
Actual Behavior
On iOS
scrollToLocation
scrolls to far:This also introduces some weird issues when the user starts scrolling from there on.
Reproducible Demo
https://snack.expo.io/HJgTyClEG
The text was updated successfully, but these errors were encountered: