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.

When SectionList scrollToLocation function not working

See original GitHub issue

Say you have a SectionList Nested in a SrollView e.g

<ScrollView>
  <SectionList />
<ScrollView>

and you want to scroll to a specific section in the SectionList using scrollToLocation function, it wont work. Any help please

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
lafioscacommented, Aug 4, 2021

Specifically, the error looks like this for me:

image

0reactions
mustafaskyercommented, Jul 30, 2022

@roryabraham not working

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native SectionList scrollToLocation not working inside a ...
The behavior appears to be related to the underlying implementation of the scroll* imperative functions. Specifically, the call stack looks ...
Read more >
Help with scrollToLocation in a large SectionList : r/reactnative
So I have a SectionList with data pulled from the User's contacts. ... I couldn't get the formatting to work correctly on Reddit, ......
Read more >
scrollToLocation is undefined in sectionlist ref of react native ...
Coding example for the question scrollToLocation is undefined in sectionlist ref of react native, neither in flatlist-React Native.
Read more >
scrollToLocation - Expo Snack
scrollToLocation. No description. Open with Expo Go. Open in editor. Need Expo? Don't have the Expo Go? Download the app to try this...
Read more >
SectionList - React Native Archive
This is a PureComponent which means that it will not re-render if props remain shallow-equal. Make sure that everything your renderItem function depends...
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