Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/components/Tab/RNTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ export class RNTab extends QTabWidget implements RNComponent {
if (!(child instanceof RNTabItem)) {
throw new Error("Children of tab should be of type TabItem");
}
// uncomment below code after new release of nodegui containing insertTab
// const index = this.indexOf(beforeChild.actualTabWidget as NodeWidget<any>);
// this.insertTab(index, child.actualTabWidget, new QIcon(), "");
// child.parentTab = this;
// setTabItemProps(child, this, child.initialProps, {});
const index = this.indexOf(beforeChild.actualTabWidget as NodeWidget<any>);
this.insertTab(index, child.actualTabWidget as NodeWidget<any>, new QIcon(), "");
child.parentTab = this;
setTabItemProps(child, this, child.initialProps, {});
}
removeChild(child: RNTabItem): void {
const childIndex = this.indexOf(child.actualTabWidget as NodeWidget<any>);
Expand Down