From 5a7c9f0730d0badfa430aa6f9f17523242af137a Mon Sep 17 00:00:00 2001 From: Garry Date: Tue, 17 Sep 2019 09:54:19 +0300 Subject: [PATCH] make ScrollView stickyHeaderIndices works as intended --- src/index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 8787b6f..ac20b47 100644 --- a/src/index.js +++ b/src/index.js @@ -110,12 +110,12 @@ class ParallaxScrollView extends Component { stickyHeaderHeight, renderForeground: renderForeground || renderParallaxHeader }) - const bodyComponent = this._wrapChildren(children, { - contentBackgroundColor, - stickyHeaderHeight, - renderContentBackground, - contentContainerStyle - }) + // const bodyComponent = this._wrapChildren(children, { + // contentBackgroundColor, + // stickyHeaderHeight, + // renderContentBackground, + // contentContainerStyle + // }) const footerSpacer = this._renderFooterSpacer({ contentBackgroundColor }) const maybeStickyHeader = this._maybeRenderStickyHeader({ parallaxHeaderHeight, @@ -145,7 +145,7 @@ class ParallaxScrollView extends Component { // onScroll: this._onScroll.bind(this) }, foreground, - bodyComponent, + children, footerSpacer )} {maybeStickyHeader}