@@ -492,6 +492,7 @@ export class Tabs extends TabsBase {
492
492
493
493
public _needsCacheUpdate = false ;
494
494
public _animateNextChange = true ;
495
+ private _selectionIndicatorColor : Color ;
495
496
496
497
constructor ( ) {
497
498
super ( ) ;
@@ -1084,13 +1085,13 @@ export class Tabs extends TabsBase {
1084
1085
this . _ios . tabBar . setImageTintColorForState ( nativeColor , UIControlState . Selected ) ;
1085
1086
}
1086
1087
1087
- public getTabBarHighlightColor ( ) : UIColor {
1088
- return this . _ios . tabBar . tintColor ;
1088
+ public getTabBarHighlightColor ( ) : Color {
1089
+ return this . _selectionIndicatorColor ;
1089
1090
}
1090
1091
1091
- public setTabBarHighlightColor ( value : UIColor | Color ) {
1092
- const nativeColor = value instanceof Color ? value . ios : value ;
1093
- this . _ios . tabBar . tintColor = nativeColor ;
1092
+ public setTabBarHighlightColor ( value : Color ) {
1093
+ this . _selectionIndicatorColor = value ;
1094
+ this . _ios . tabBar . selectionIndicatorStrokeColor = value . ios ;
1094
1095
}
1095
1096
1096
1097
public getTabBarSelectedItemColor ( ) : Color {
@@ -1122,8 +1123,8 @@ export class Tabs extends TabsBase {
1122
1123
} ) ;
1123
1124
}
1124
1125
1125
- [ rippleColorProperty . setNative ] ( value : UIColor | Color ) {
1126
- this . setTabBarHighlightColor ( value ) ;
1126
+ [ rippleColorProperty . setNative ] ( value : Color ) {
1127
+ this . _ios . tabBar . rippleColor = value . ios ;
1127
1128
}
1128
1129
1129
1130
[ selectedIndexProperty . setNative ] ( value : number ) {
0 commit comments