File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -194,13 +194,13 @@ class Card extends PureComponent<PropTypes, State> {
194
194
}
195
195
}
196
196
197
- get blurBgStyle ( ) {
198
- const { enableBlur} = this . props ;
197
+ get backgroundStyle ( ) {
198
+ const { enableBlur, backgroundColor = Colors . white } = this . props ;
199
199
200
200
if ( Constants . isIOS && enableBlur ) {
201
- return { backgroundColor : Colors . rgba ( Colors . white , 0.85 ) } ;
201
+ return { backgroundColor : Colors . rgba ( backgroundColor , 0.85 ) } ;
202
202
} else {
203
- return { backgroundColor : Colors . white } ;
203
+ return { backgroundColor} ;
204
204
}
205
205
}
206
206
@@ -299,7 +299,7 @@ class Card extends PureComponent<PropTypes, State> {
299
299
{ borderRadius : brRadius } ,
300
300
this . elevationStyle ,
301
301
this . shadowStyle ,
302
- this . blurBgStyle ,
302
+ this . backgroundStyle ,
303
303
containerStyle ,
304
304
style
305
305
] }
You can’t perform that action at this time.
0 commit comments