From 6c43f74d2e6320936ba82298b8984f0eb68398c8 Mon Sep 17 00:00:00 2001 From: naxel Date: Fri, 14 Oct 2016 15:40:57 +0300 Subject: [PATCH] fixed https://github.com/jaysoo/react-native-parallax-scroll-view/issues/25 --- src/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 594c906..b42ac14 100644 --- a/src/index.js +++ b/src/index.js @@ -276,15 +276,20 @@ class ParallaxScrollView extends Component { const { viewWidth, scrollY } = this.state; if (renderStickyHeader || renderFixedHeader) { const p = pivotPoint(parallaxHeaderHeight, stickyHeaderHeight); + let height = interpolate(scrollY, { + inputRange: [0, stickyHeaderHeight], + outputRange: [0, stickyHeaderHeight], + extrapolate: 'clamp' + }); return ( - + { renderStickyHeader ? (