-
Notifications
You must be signed in to change notification settings - Fork 43
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
renderItem is not being called after switching from FlatList #134
Comments
yeah i am facing the same issue the items are not being rendered just a blank screen |
i have the same problem and on my side |
double check the name of your data variable, maybe try to rename it because the mess of |
The variable names were correct in my example there, and worked in the original FlatList (Aside from the blank space issue with items towards the bottom of the list). I think in the end we increased the SectionList initialNumToRender property from the default of 10 to a higher amount. The SectionList was using FlatLists for its sections. I was worried it would increase memory usage and introduce a new problem that way but we haven't seen any issues from it. |
@marcocesarato can you have a look at this please i want to use this but this issue keeps me out. |
@bmcn99 can you please provide the data structure you use as the 'data' prop? |
@labtorie i just tried with |
Same issue over here. |
@marcocesarato any news here? |
I was able to resolve the issue by downgrading to version 1.5.0 and also by adding a height of 100% to the view above BigList. |
struggling with the same issue, makes the library unusable unfortunately. any news on this? id really like to use the package otherwise |
The reason for an empty component in my case was the missing height on the parent element of my BigList. Solution was to add a
|
I've installed BigList and followed the 'Migrate from FlatList' guide, after which the component looks like this:
No items are rendered and that console.log() within the renderItem function never shows up.
If I switch back to FlatList and remove the itemHeight property everything is displayed properly again.
In the migration guide it specifically says "The main props of FlatList are compatible with BigList like data". Are there exceptions to that? Does it not extend to renderItem and I need to download the examples to see how the needs of that have changed?
I should also ask since this is mentioned on the front page: 'When list can't render your items fast enough the non-rendered components will appear as blank space.' Since I am currently experiencing this problem with categories further down my list being blank, will BigList do anything to fix that or will it have the same problems FlatList has? I saw another issue elsewhere mention that they were still having the same blank space issues while using this plugin.
Thanks.
The text was updated successfully, but these errors were encountered: