@@ -82,13 +82,13 @@ export default class RNFadedScrollView extends Component {
82
82
return ( this . props . horizontal ?
83
83
< LinearGradient
84
84
start = { { x : this . props . isRtl ? 0 : 1 , y : 0 } } end = { { x : this . props . isRtl ? 1 : 0 , y : 0 } }
85
- style = { { position : 'absolute' , start : 0 , width : this . props . fadeSize , height : '100%' } }
85
+ style = { [ { position : 'absolute' , start : 0 , width : this . props . fadeSize , height : '100%' } , this . props . startFadeStyle ] }
86
86
colors = { this . props . fadeColors }
87
87
pointerEvents = { 'none' }
88
88
/> :
89
89
< LinearGradient
90
90
start = { { x : 0 , y : 1 } } end = { { x : 0 , y : 0 } }
91
- style = { { position : 'absolute' , top : 0 , width : '100%' , height : this . props . fadeSize } }
91
+ style = { [ { position : 'absolute' , top : 0 , width : '100%' , height : this . props . fadeSize } , this . props . startFadeStyle ] }
92
92
colors = { this . props . fadeColors }
93
93
pointerEvents = { 'none' }
94
94
/>
@@ -99,14 +99,14 @@ export default class RNFadedScrollView extends Component {
99
99
return ( this . props . horizontal ?
100
100
< LinearGradient
101
101
start = { { x : this . props . isRtl ? 1 : 0 , y : 0 } } end = { { x : this . props . isRtl ? 0 : 1 , y : 0 } }
102
- style = { { position : 'absolute' , end : 0 , width : this . props . fadeSize , height : '100%' } }
102
+ style = { [ { position : 'absolute' , end : 0 , width : this . props . fadeSize , height : '100%' } , this . props . endFadeStyle ] }
103
103
colors = { this . props . fadeColors }
104
104
pointerEvents = { 'none' }
105
105
/>
106
106
:
107
107
< LinearGradient
108
108
start = { { x : 0 , y : 0 } } end = { { x : 0 , y : 1 } }
109
- style = { { position : 'absolute' , bottom : 0 , width : '100%' , height : this . props . fadeSize } }
109
+ style = { [ { position : 'absolute' , bottom : 0 , width : '100%' , height : this . props . fadeSize } , this . props . endFadeStyle ] }
110
110
colors = { this . props . fadeColors }
111
111
pointerEvents = { 'none' }
112
112
/> )
0 commit comments