Skip to content

Commit 3b2989f

Browse files
authored
Merge pull request #139 from james-criscuolo/master
Angular BottomNavigationBar showBadge fix
2 parents c73a55a + 0cf6241 commit 3b2989f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bottomnavigationbar/bottomnavigationbar.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class BottomNavigationBar extends BottomNavigationBarBase {
132132
// showBadge method is available in v1.1.0-alpha07 of material components
133133
// but NS team has the .d.ts for version 1
134134
// that's why we need to cast the nativeView to any to avoid typing errors
135-
const badge = (this.nativeViewProtected as any).showBadge(index);
135+
const badge = (this.nativeViewProtected as any).getOrCreateBadge(index);
136136
if (value) {
137137
badge.setNumber(value);
138138
}

0 commit comments

Comments
 (0)