Comments (3)
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.
If you set safeMargin smaller, do not forget that dynamicMargin must be smaller than safeMargin
from react-native-largelist.
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)
- Can you set the offset to refresh and load, and set the sliding distance to refresh and load?
- Stickyform android scroll laggedly
- 关于 renderFooter 的问题
- renderIndexPath
- Problem Android with RN 0.66.4
- 关于需要返回列表每一行高度的函数 HOT 1
- 能否加个参数 上拉提前加载更多 类似Flatlist的onEndReachedThreshold
- what is "renderSection" for LargeList?
- 有没有暴露Item 曝光的事件和消失的事件 HOT 1
- 瀑布流card 高度不确定矫正问题
- Error with RN Version 0.69.0
- 'data[section].items.length' 错误 HOT 1
- Sticky header support 有例子嘛 HOT 1
- 大佬,WaterfallList在header高度超过屏幕高度的情况,下面是list瀑布流,会偶尔出现瀑布流有数据,却无法往上拖动的情况
- renderIndexpath dynamic height HOT 1
- how to set customs height for section
- Error install package for react version in the latest react native. HOT 2
- endLoading调用报错 HOT 1
- not showing full list. just white space after that HOT 6
- How to achieve the section sticky header effect on Android as well
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-largelist.