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 2d005f5 commit 944adf7Copy full SHA for 944adf7
src/index.js
@@ -50,16 +50,28 @@ export default class LinearGradient extends PureComponent {
50
.join(',');
51
52
render() {
53
+ const {
54
+ start,
55
+ end,
56
+ colors,
57
+ locations,
58
+ useAngle,
59
+ angleCenter,
60
+ angle,
61
+ style,
62
+ children,
63
+ ...otherProps
64
+ } = this.props;
65
return (
66
<View
67
+ {...otherProps}
68
style={[
- this.props.style,
69
70
{ backgroundImage: `linear-gradient(${this.getAngle()},${this.getColors()})` },
71
]}
- testID={this.props.testID}
72
onLayout={this.measure}
73
>
- {this.props.children}
74
+ {children}
75
</View>
76
);
77
}
0 commit comments