Skip to content

Commit 3a56549

Browse files
authored
[bottom-navigation] Fixe IOS icon color
In IOS the icon color doesn't change correctly is seems that is due to a miss in the code `isFontIcont` is not set correctly if the image type is a font icon .. and it was set as constant also!
1 parent 2902e9a commit 3a56549

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bottom-navigation/index.ios.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,11 +690,12 @@ export class BottomNavigation extends TabNavigationBase {
690690
}
691691
const iconTag = [iconSource, font.fontStyle, font.fontWeight, font.fontSize, font.fontFamily, color].join(';');
692692

693-
const isFontIcon = false;
693+
let isFontIcon = false;
694694
let image: UIImage = this.mIconsCache[iconTag];
695695
if (!image) {
696696
let is: ImageSource | ImageAsset;
697697
if (typeof iconSource === 'string') {
698+
isFontIcon = true;
698699
if (Utils.isFontIconURI(iconSource)) {
699700
const fontIconCode = iconSource.split('//')[1];
700701
const target = tabStripItem.image ? tabStripItem.image : tabStripItem;

0 commit comments

Comments
 (0)