Skip to content

Commit b675790

Browse files
committed
fix overlay color for solid overlay
1 parent f777ef3 commit b675790

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/overlay/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,15 @@ export default class Overlay extends PureBaseComponent {
6262
};
6363

6464
renderImage = (style, source) => {
65-
const {color} = this.props;
66-
return <Image style={[styles.container, {tintColor: color}, style]} resizeMode={'stretch'} source={source}/>;
65+
const {color, type} = this.props;
66+
const colorStyle = type === OVERLY_TYPES.SOLID ? {backgroundColor: color} : {tintColor: color};
67+
return (
68+
<Image
69+
style={[styles.container, style, colorStyle]}
70+
resizeMode={'stretch'}
71+
source={source}
72+
/>
73+
);
6774
};
6875

6976
render() {

0 commit comments

Comments
 (0)