Giter Club home page Giter Club logo

Comments (3)

bolan9999 avatar bolan9999 commented on July 20, 2024 1

I looked at the log.

Yes, you are right. 1.2.4 takes more time when initializing by default for the 2 reasons:

  • The default numberOfCellPoolSize increased to prevent it from appearing blank.

  • Render more unused items when initializing to prevent it from appearing blank.

To solve your problem , you can set the numberOfCellPoolSize and safeMargin smaller. I suggest you set it to

(large list visible height + 2 * safeMargin)/min Cell height

Of course, you can set it smaller to initialize faster . But if it is too small ,it will not work well. You can try it.

Notice:

LargeList does not create cell when sliding, they are reused.

If numberOfCellPoolSize is too large, it takes more time when initialing and reloadData.

If it is too small, LargeList will not work well.

from react-native-largelist.

bolan9999 avatar bolan9999 commented on July 20, 2024 1

If you set safeMargin smaller, do not forget that dynamicMargin must be smaller than safeMargin

from react-native-largelist.

HZSamir avatar HZSamir commented on July 20, 2024

Then the trick is finding the right setting, I take it
Thank you, this has been most helpful
I'm closing this issue, but I'll let you know how it turns out

Again, thank you

from react-native-largelist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.