@@ -105,20 +105,26 @@ export class Slider extends View {
105
105
if ( color ) {
106
106
this . nativeViewProtected . setTrackTintList ( sliderGetEnabledColorStateList ( color ) ) ;
107
107
if ( ! this . trackBackgroundColor ) {
108
- this . trackBackgroundColor = new Color ( 61.2 , color . r , color . g , color . b ) ;
108
+ this [ trackBackgroundColorProperty . setNative ] ( new Color ( 61.2 , color . r , color . g , color . b ) ) ;
109
109
}
110
110
} else {
111
111
this . nativeViewProtected . setTrackTintList ( null ) ;
112
112
if ( ! this . trackBackgroundColor ) {
113
113
this . trackBackgroundColor = null ;
114
+ this [ trackBackgroundColorProperty . setNative ] ( null ) ;
115
+ // } else {
116
+ // this[trackBackgroundColorProperty.setNative](this.trackBackgroundColor);
114
117
}
115
118
}
116
119
117
120
// if (!this.trackFillColor) {
118
121
// this.trackFillColor = color;
119
122
// }
120
123
if ( ! this . thumbColor ) {
121
- this . thumbColor = color ;
124
+ this [ thumbColorProperty . setNative ] ( color ) ;
125
+ if ( ! this . rippleColor ) {
126
+ this [ rippleColorProperty . setNative ] ( color ) ;
127
+ }
122
128
} else {
123
129
// trackFillColor overrides also the thumbColor
124
130
this [ thumbColorProperty . setNative ] ( this . thumbColor ) ;
@@ -188,7 +194,7 @@ export class Slider extends View {
188
194
[ thumbColorProperty . setNative ] ( color : Color ) {
189
195
this . nativeViewProtected . setThumbTintList ( sliderGetEnabledColorStateList ( color ) ) ;
190
196
if ( ! this . rippleColor ) {
191
- this . rippleColor = color ;
197
+ this [ rippleColorProperty . setNative ] ( color ) ;
192
198
} else {
193
199
// trackFillColor overrides also the thumbColor
194
200
this [ rippleColorProperty . setNative ] ( this . rippleColor ) ;
0 commit comments