We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e2061 commit 7a0debeCopy full SHA for 7a0debe
src/bottomnavigationbar/bottomnavigationbar.android.ts
@@ -200,12 +200,13 @@ export class BottomNavigationBar extends BottomNavigationBarBase {
200
}
201
202
protected selectTabNative(index: number): void {
203
- const bottomNavigationTabs = this.nativeView.getMenu();
204
-
205
- if (bottomNavigationTabs.size() === 0) {
206
- return;
+ if (this.nativeViewProtected) {
+ const bottomNavigationTabs = this.nativeViewProtected.getMenu();
+ if (bottomNavigationTabs.size() === 0) {
+ return;
207
+ }
208
+ this.nativeViewProtected.setSelectedItemId(index);
209
- this.nativeViewProtected.setSelectedItemId(index);
210
this.selectedTabIndex = index;
211
212
0 commit comments