react-nodegui icon indicating copy to clipboard operation
react-nodegui copied to clipboard

RNList and FlexLayout

Open liuqi-sun opened this issue 3 years ago • 0 comments

appendChild(child: RNListItem): void { if (!this.layout) { this.setLayout(new FlexLayout()); }

if (!(child instanceof RNListItem)) {
  throw new Error("Children of list should be of type ListItem");
}

this.addItem(child);
if (child.actualListItemWidget) {
  child.setSizeHint(child.actualListItemWidget.size());
  this.setItemWidget(child, child.actualListItemWidget);
}

}

in this codes, What does new FlexLayout() do?

liuqi-sun avatar Feb 09 '22 12:02 liuqi-sun