react-native-big-list icon indicating copy to clipboard operation
react-native-big-list copied to clipboard

BigList Crashes With the placeholder prop set to true

Open hussainhaideri opened this issue 2 years ago • 2 comments

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 avatar Aug 17 '22 10:08 hussainhaideri

@hussainhaideri did you got any solution?

vardan0107 avatar Mar 04 '23 18:03 vardan0107

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

MHaris404 avatar Mar 16 '23 04:03 MHaris404