Further performance improvements
这个提交包含在:
父节点
3d0e03cb9d
当前提交
2dab27de22
共有 1 个文件被更改,包括 5 次插入 和 2 次删除
|
|
@ -53,6 +53,9 @@ class GroupListAccordion extends React.Component<Props> {
|
|||
return displayData;
|
||||
}
|
||||
|
||||
itemLayout = (data, index) => ({length: LIST_ITEM_HEIGHT, offset: LIST_ITEM_HEIGHT * index, index});
|
||||
|
||||
|
||||
render() {
|
||||
const item = this.props.item;
|
||||
return (
|
||||
|
|
@ -82,8 +85,8 @@ class GroupListAccordion extends React.Component<Props> {
|
|||
keyExtractor={this.keyExtractor}
|
||||
listKey={item.id.toString()}
|
||||
// Performance props, see https://reactnative.dev/docs/optimizing-flatlist-configuration
|
||||
// getItemLayout={this.itemLayout} // Broken with search
|
||||
// removeClippedSubviews={true}
|
||||
getItemLayout={this.itemLayout}
|
||||
removeClippedSubviews={true}
|
||||
/>
|
||||
</AnimatedAccordion>
|
||||
</View>
|
||||
|
|
|
|||
正在加载…
在新工单中引用