diff --git a/src/index.js b/src/index.js index 8787b6f..68567b8 100644 --- a/src/index.js +++ b/src/index.js @@ -37,6 +37,7 @@ const IPropTypes = { renderContentBackground: func, renderFixedHeader: func, renderForeground: func, + forceScroll: bool, renderScrollComponent: func, renderStickyHeader: func, stickyHeaderHeight: number, @@ -85,6 +86,7 @@ class ParallaxScrollView extends Component { renderContentBackground, renderFixedHeader, renderForeground, + forceScroll, renderParallaxHeader, renderScrollComponent, renderStickyHeader, @@ -116,7 +118,7 @@ class ParallaxScrollView extends Component { renderContentBackground, contentContainerStyle }) - const footerSpacer = this._renderFooterSpacer({ contentBackgroundColor }) + const footerSpacer = forceScroll ? this._renderFooterSpacer({ contentBackgroundColor }) : null const maybeStickyHeader = this._maybeRenderStickyHeader({ parallaxHeaderHeight, stickyHeaderHeight, @@ -434,6 +436,7 @@ ParallaxScrollView.defaultProps = { renderContentBackground: noRender, renderParallaxHeader: renderEmpty, // Deprecated (will be removed in 0.18.0) renderForeground: null, + forceScroll: true, stickyHeaderHeight: 0, contentContainerStyle: null, outputScaleValue: 5