English 中文(简体)
用于处理土著人口学的拉齐-载体
原标题:Lazy-loading for React Native ScrollView

目前,我的《土著评估》包含在《意见》中的许多复杂内容。 我使用以下方法优化了意见的提交:

  • Track the current location of the ScrollView offset.
  • Check if the component s position in ScrollView is being viewed, then render Component or render skeleton component

您是否认为这将改进意见书的优化? 如果能更好地发挥作用,我怎么能视而不见?

问题回答

它胜诉,因为你必须重新招标,以更新已形成的组成部分。

我不知道您在<>繁多的复杂部件上的意思,但是如果你们有许多人应当使用。 法语区/List。 有一些图书馆在编制清单时表现较好。

https://shopification.github.io/flash-list/"rel=“nofollow noreferer”>https://shopification.github.io/flash-list/

https://github.com/Flipkart/relistview

如果在座标中引起某种逻辑 浏览材料,例如,使用Effecs /Quries / Fetching图像等......

你可以执行

  1. on 浏览量

  2. https://reactnative.dev/docs/flatlist#viewabilityconfig”rel=“nofollow noreferer”>viewabilityConfig

然后使用forwardRefuseImperativeHandle,在某一项物品明显或即将可见时,你可以将逻辑推给该回。

它不是简单的解决办法,但简言之,这是优化反应清单的方法。





相关问题
POCO objects with lazy loading

I am new to ASP.NET MVC, IoC, POCO, etc. So I want to know is it OK to use such kind of architecture. This is my demo project. Project.Core (this assembly referenced by all project) public class ...

CGImage/UIImage lazily loading on UI thread causes stutter

My program displays a horizontal scrolling surface tiled with UIImageViews from left to right. Code runs on the UI thread to ensure that newly-visible UIImageViews have a freshly loaded UIImage ...

nHibernate Collection Count

I have the following model which I have created and mapped with nHibernate. Using lazy loading so I don t need to get the Vehicles for the Dealer at the start. Public class Dealer { public virtual ...

Fetched Properties v Relationships (Core Data - iPhone)

I m a new iPhone developer (of about 4 months or so) who is starting to look at Core Data. In the "Beginning iPhone 3 Development" book by Dave Mark it mentions that the main difference between ...

Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

热门标签