Skip to content

Commit 50f9d13

Browse files
committed
fix: default tab select on iOS v8
1 parent 7053eb1 commit 50f9d13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bottomnavigationbar/bottomnavigationbar.ios.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ export class BottomNavigationBar extends BottomNavigationBarBase {
141141
});
142142
this.nativeViewProtected.items = new NSArray({ array: bottomNavigationTabs });
143143

144-
this.nativeViewProtected.selectedItem = this.nativeViewProtected.items[this.selectedTabIndex];
144+
// TODO: Should not have to need this setTimeout(), find better way.
145+
setTimeout(() => {
146+
this.nativeViewProtected.selectedItem = this.nativeViewProtected.items[this.selectedTabIndex];
147+
}, 0);
145148
}
146149

147150
protected selectTabNative(index: number): void {

0 commit comments

Comments
 (0)