diff --git a/src/index.js b/src/index.js index 8787b6f..3d70e07 100644 --- a/src/index.js +++ b/src/index.js @@ -371,14 +371,22 @@ class ParallaxScrollView extends Component { }) { const { viewWidth } = this.state const { scrollY } = this + + const translateY = interpolate(scrollY, { + inputRange: [0, stickyHeaderHeight], + outputRange: [-stickyHeaderHeight, 0], + extrapolate: 'clamp' + }) + if (renderStickyHeader || renderFixedHeader) { const p = pivotPoint(parallaxHeaderHeight, stickyHeaderHeight) return ( - : null} {renderFixedHeader && renderFixedHeader()} - + ) } else { return null