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

Accordion inside ScrollView results in VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality #461

Open
hanselsen opened this issue Jan 31, 2023 · 1 comment

Comments

@hanselsen
Copy link

It is very easy. When I insert the Accordion element inside a scrollview (because I wish to manage what happens at the RefreshControl), I get this warning in my LogCat.

VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead.

My code is like this:

...
<ScrollView refreshControl={...}>
    <SomeHeading/> 
    <Accordion {...} />
</ScrollView>
...

Is there an (un)documented trick for this?

@hanselsen
Copy link
Author

@oblador
I am still very happy with the functionality, but I thought I jumped back to this. Should the property renderAsFlatList be applicable? Because this is not working.

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

No branches or pull requests

1 participant