-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
YellowBox warning when using a FlatList in a ScrollView #194
Comments
Workaround: I was able to replace the top level ScrollView with a FlatList as in the example here.
|
Hi @chetstone! It shouldn't be necessary to nest the component in a |
Just released |
Yes that fixes it! Thanks for the quick response! |
The example code always shows the TableView inside a ScrollView. (Except for the FlatList example on the README but this does not seem to be a complete example.) I wonder why this is necessary? When I omit the ScrollView in my code, only one Cell is rendered, the rest are not visible, even if the list is very short and would easily fit on the screen.
But if I do include ScrollView and a FlatList is included in the Table (or even outside the table but within the scrollview), I get a YellowBox warning:
VirtualizedLists should never be nested inside play ScrollViews with the same orientation - use another VirtualizedList-backed container instead.
The text was updated successfully, but these errors were encountered: