File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -172,16 +172,23 @@ class Card extends PureBaseComponent {
172
172
const { selectionOptions, borderRadius, selected} = this . getThemeProps ( ) ;
173
173
const { animatedSelected} = this . state ;
174
174
175
+ const selectionColor = _ . get ( selectionOptions , 'color' , DEFAULT_SELECTION_PROPS . color ) ;
176
+
175
177
if ( _ . isUndefined ( selected ) ) {
176
178
return null ;
177
179
}
178
180
179
181
return (
180
182
< Animated . View
181
- style = { [ this . styles . selectedBorder , borderRadius && { borderRadius} , { opacity : animatedSelected } ] }
183
+ style = { [
184
+ this . styles . selectedBorder ,
185
+ { borderColor : selectionColor } ,
186
+ borderRadius && { borderRadius} ,
187
+ { opacity : animatedSelected } ,
188
+ ] }
182
189
pointerEvents = "none"
183
190
>
184
- < View style = { this . styles . selectedIndicator } >
191
+ < View style = { [ this . styles . selectedIndicator , { backgroundColor : selectionColor } ] } >
185
192
< Image source = { _ . get ( selectionOptions , 'icon' , DEFAULT_SELECTION_PROPS . icon ) } />
186
193
</ View >
187
194
</ Animated . View >
You can’t perform that action at this time.
0 commit comments