gpt4 book ai didi

ios - 组件的 "row container"是什么?

转载 作者:行者123 更新时间:2023-12-01 20:16:59 24 4
gpt4 key购买 nike

https://facebook.github.io/react-native/docs/listview.html说:

removeClippedSubviews bool

A performance optimization for improving scroll perf of large lists, used in conjunction with overflow: 'hidden' on the row containers.



https://facebook.github.io/react-native/docs/performance.html说:

removeClippedSubviews

"When true, offscreen child views (whose overflow value is hidden) are removed from their native backing superview when offscreen. This can improve scrolling performance on long lists. The default value is true."(The default value is false before version 0.14-rc).

This is an extremely important optimization to apply on large ListViews. On Android the overflow value is always hidden so you don't need to worry about setting it, but on iOS you need to be sure to set overflow: hidden on row containers.



但什么是“行容器”?
<ListView renderRow={(r) => <Row r=r>}>

我需要申请这个 overflow: hidden<ListView><Row>风格?

最佳答案

从您共享的文档中-

When true, offscreen child views (whose overflow value is hidden) are removed from their native backing superview when offscreen.



这意味着在您的情况下,您需要申请 overflow: hiddenRow您在 renderRow 中使用过的组件.

关于ios - <ListView> 组件的 "row container"是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36605906/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com