diff --git a/tns-core-modules/ui/tabs/tabs.ios.ts b/tns-core-modules/ui/tabs/tabs.ios.ts index 979d93e41..9239454ac 100644 --- a/tns-core-modules/ui/tabs/tabs.ios.ts +++ b/tns-core-modules/ui/tabs/tabs.ios.ts @@ -590,6 +590,11 @@ export class Tabs extends TabsBase { this._ios.dataSource = this._dataSource; this._ios.delegate = this._delegate; + + if (!this.tabBarItems) { + const tabStripItems = this.tabStrip ? this.tabStrip.items : null; + this.setTabStripItems(tabStripItems); + } } public onUnloaded() { @@ -836,6 +841,10 @@ export class Tabs extends TabsBase { } public setTabStripItems(items: Array) { + if (!this.tabStrip || !items) { + return; + } + const tabBarItems = []; items.forEach((item: TabStripItem, i) => {