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

Update usage.md: add note about scroll component ref #893

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adam-lynch
Copy link

This is just a small docs update.

When using renderScrollComponent, if you don't use the ref passed to your component, scrollTo* won't work.

I decided not to mention what wouldn't work if you didn't follow this suggestion, but I can if you like.

Also, I'm not sure if I should explicitly mention forwardRef or not.

@henrymoulton
Copy link

henrymoulton commented Oct 27, 2023

Hey @adam-lynch I'm about to create an issue for this but I noticed that when using FlashList and renderScrollComponent with an Animated.ScrollView, when usingscrollTo from Reanimated, the scrollView will scroll but FlashList's recycling will not work resulting in permanent blanks.

Assume this is because recycling happens on the JS thread and scrollTo is happening on the UI thread but need to look into this more.

Just wondering if you've come across this issue?

@adam-lynch
Copy link
Author

Hmm, no I don't think so 🤔. CC my colleague @artemlitch who would know better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants