Skip to content

Commit d726d7d

Browse files
committed
Remove default style
1 parent 804450c commit d726d7d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

docs/stories/gradientBackground.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ export const withAngle = () => (
1111
const styles = StyleSheet.create({
1212
page: {
1313
flex: 1,
14+
alignSelf: 'stretch',
1415
},
1516
});

src/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PureComponent } from 'react';
2-
import { StyleSheet, View } from 'react-native';
2+
import { View } from 'react-native';
33

44
export default class LinearGradient extends PureComponent {
55
static defaultProps = {
@@ -53,7 +53,6 @@ export default class LinearGradient extends PureComponent {
5353
return (
5454
<View
5555
style={[
56-
styles.container,
5756
this.props.style,
5857
{ backgroundImage: `linear-gradient(${this.getAngle()},${this.getColors()})` },
5958
]}
@@ -64,9 +63,3 @@ export default class LinearGradient extends PureComponent {
6463
);
6564
}
6665
}
67-
68-
const styles = StyleSheet.create({
69-
container: {
70-
alignSelf: 'stretch',
71-
},
72-
});

0 commit comments

Comments
 (0)