File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ export const withAngle = () => (
1111const styles = StyleSheet . create ( {
1212 page : {
1313 flex : 1 ,
14+ alignSelf : 'stretch' ,
1415 } ,
1516} ) ;
Original file line number Diff line number Diff line change 11import React , { PureComponent } from 'react' ;
2- import { StyleSheet , View } from 'react-native' ;
2+ import { View } from 'react-native' ;
33
44export 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- } ) ;
You can’t perform that action at this time.
0 commit comments