We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f777ef3 commit b675790Copy full SHA for b675790
src/components/overlay/index.js
@@ -62,8 +62,15 @@ export default class Overlay extends PureBaseComponent {
62
};
63
64
renderImage = (style, source) => {
65
- const {color} = this.props;
66
- return <Image style={[styles.container, {tintColor: color}, style]} resizeMode={'stretch'} source={source}/>;
+ const {color, type} = this.props;
+ 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
+ );
74
75
76
render() {
0 commit comments