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.
2 parents d1ed21b + 3b2989f commit 5cb18adCopy full SHA for 5cb18ad
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