Skip to content
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

ScrollToLocation does not work on nested SectionList #25295

Closed
aleixo opened this issue Jun 18, 2019 · 3 comments
Closed

ScrollToLocation does not work on nested SectionList #25295

aleixo opened this issue Jun 18, 2019 · 3 comments
Labels
Bug Component: SectionList Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@aleixo
Copy link

aleixo commented Jun 18, 2019

I cannot use the reference method ScrollToLocation on a nested Section List. It will always give me error saying that this._scrollRef.scrollTo is not a function. (In 'this._scrollRef.scrollTo(o?{x:y,animated:p}:{y:y,animated:p})', 'this._scrollRef.scrollTo' is undefined). I am using RN 0.59.9.

React Native version:

info
React Native Environment Info:
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Memory: 2.98 GB / 7.87 GB
Binaries:
Yarn: 1.16.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.4.0.0 AI-183.6156.11.34.5522156

Steps To Reproduce

  • Using the provided expo
  1. Click on one not bold item.
  • No using the provided expo
  1. Setup one SectionList component
  2. On the section List renderItem, render another SectionList component
  3. On the second secondList, capture its reference
  4. Call scrollToLocation method of the second sectionlist on renderItem click.

E expect the list to scroll to the index provided on the section provided

Snack, code example, or link to a repository:

https://snack.expo.io/@daleixo/sectionlist-bug

@andercard
Copy link

It happens to me the same error is as if the method did not exist

@stale
Copy link

stale bot commented Sep 16, 2019

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 a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 16, 2019
@stale
Copy link

stale bot commented Sep 23, 2019

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.

@stale stale bot closed this as completed Sep 23, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: SectionList Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants