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

BigList Crashes With the placeholder prop set to true #238

Open
hussainhaideri opened this issue Aug 17, 2022 · 2 comments
Open

BigList Crashes With the placeholder prop set to true #238

hussainhaideri opened this issue Aug 17, 2022 · 2 comments

Comments

@hussainhaideri
Copy link

On a list of contacts, loaded in the BigList, when the placeholder prop is set to true, on the first scroll itself the app crashes. No errors are seen on the console. I am using the expo client for Android.

However when the list is small in size with say a few records like 20 to 30 and the placeholder prop is set to true, one can see the gray-colored images upon scroll. Setting the placeholderImage for a small-sized list, loads the placeholder image too.

placeholder={true}
placeholderImage={require("../../assets/images/heart-empty.png")}

So I think there is some memory leak happening for a list with a large number of items, and the props placeholder is not working. Please can anybody confirm this?

Looking forward to a fix for this as the blank screen on the fast scroll is a problem.

@hussainhaideri hussainhaideri changed the title Bug with the placeholder prop set to true App Crashes With the placeholder prop set to true Aug 17, 2022
@hussainhaideri hussainhaideri changed the title App Crashes With the placeholder prop set to true BigList Crashes With the placeholder prop set to true Aug 17, 2022
@vardan0107
Copy link

@hussainhaideri did you got any solution?

@MHaris404
Copy link

MHaris404 commented Mar 16, 2023

UPDATE 1- if it helps, please use

  • placeholder={true}
  • placeholderComponent / placeholderImage

ORIGINAL
1- had the same problem, was crashing on list of size 105, disabled both and now works fine.
2- was not using any component or image, any of the latter is required

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

3 participants