File tree 2 files changed +10
-2
lines changed 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "bookmarks" : []
3
+ }
Original file line number Diff line number Diff line change @@ -278,15 +278,20 @@ class ParallaxScrollView extends Component {
278
278
const { viewWidth, scrollY } = this . state ;
279
279
if ( renderStickyHeader || renderFixedHeader ) {
280
280
const p = pivotPoint ( parallaxHeaderHeight , stickyHeaderHeight ) ;
281
+ let height = interpolate ( scrollY , {
282
+ inputRange : [ 0 , stickyHeaderHeight ] ,
283
+ outputRange : [ 0 , stickyHeaderHeight ] ,
284
+ extrapolate : 'clamp' ,
285
+ } ) ;
281
286
return (
282
- < View style = { [ styles . stickyHeader , { width : viewWidth , ... ( stickyHeaderHeight ? { height : stickyHeaderHeight } : null ) } ] } >
287
+ < View style = { [ styles . stickyHeader , { width : viewWidth } ] } >
283
288
{
284
289
renderStickyHeader
285
290
? (
286
291
< Animated . View
287
292
style = { {
288
293
backgroundColor : backgroundColor ,
289
- height : stickyHeaderHeight ,
294
+ height : height ,
290
295
opacity : interpolate ( scrollY , {
291
296
inputRange : [ 0 , p ] ,
292
297
outputRange : [ 0 , 1 ] ,
You can’t perform that action at this time.
0 commit comments