Skip to content

Commit 984f648

Browse files
authored
Update bottomnavigationbar.ios.ts
1 parent 37951f5 commit 984f648

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bottomnavigationbar/bottomnavigationbar.ios.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ export class BottomNavigationBar extends BottomNavigationBarBase {
152152
return tab;
153153
});
154154
this.nativeViewProtected.items = new NSArray({ array: bottomNavigationTabs });
155-
this.nativeViewProtected.selectedItem = this.nativeViewProtected.items[this.selectedTabIndex];
155+
156+
// TODO: this is for he v8 runtime. Should not have to need this setTimeout(), find better way.
157+
setTimeout(() => {
158+
this.nativeViewProtected.selectedItem = this.nativeViewProtected.items[this.selectedTabIndex];
159+
}, 0);
156160
}
157161

158162
protected selectTabNative(index: number): void {

0 commit comments

Comments
 (0)