Skip to content

Commit 8bbe7b8

Browse files
committed
fix(bottom-navigation): prevent issue with while changing system theme
1 parent 7d3d7aa commit 8bbe7b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bottom-navigation/index.android.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,9 @@ export class BottomNavigation extends TabNavigationBase {
903903

904904
private setIconColor(tabStripItem: TabStripItem, color?: Color) {
905905
const tabBarItem = this._bottomNavigationBar.getViewForItemAt(tabStripItem._index);
906+
if (!tabBarItem) {
907+
return;
908+
}
906909

907910
const drawableInfo = this.getIconInfo(tabStripItem, color);
908911
const imgView = tabBarItem.getChildAt(0) as android.widget.ImageView;

0 commit comments

Comments
 (0)