We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c73a55a + 0cf6241 commit 3b2989fCopy full SHA for 3b2989f
src/bottomnavigationbar/bottomnavigationbar.android.ts
@@ -132,7 +132,7 @@ export class BottomNavigationBar extends BottomNavigationBarBase {
132
// showBadge method is available in v1.1.0-alpha07 of material components
133
// but NS team has the .d.ts for version 1
134
// that's why we need to cast the nativeView to any to avoid typing errors
135
- const badge = (this.nativeViewProtected as any).showBadge(index);
+ const badge = (this.nativeViewProtected as any).getOrCreateBadge(index);
136
if (value) {
137
badge.setNumber(value);
138
}
0 commit comments