rn-parallax-view
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "rn-parallax-view", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A ScrollView-like component with parallax and sticky header support", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -94,3 +94,4 @@ import React, { Component } from 'react' | ||
} = this.props | ||
const scrollElement = renderScrollComponent(scrollViewProps) | ||
const ListHeaderComponent = scrollElement.props.ListHeaderComponent; | ||
const background = this._renderBackground({ | ||
@@ -109,3 +110,3 @@ fadeOutBackground, | ||
stickyHeaderHeight, | ||
renderForeground: renderForeground || renderParallaxHeader | ||
renderForeground: ListHeaderComponent ||renderForeground || renderParallaxHeader | ||
}) | ||
@@ -126,3 +127,2 @@ const bodyComponent = this._wrapChildren(children, { | ||
}) | ||
const scrollElement = renderScrollComponent(scrollViewProps) | ||
return ( | ||
@@ -144,2 +144,3 @@ <View | ||
), | ||
ListHeaderComponent: ListHeaderComponent ? foreground : renderEmpty() | ||
}, | ||
@@ -146,0 +147,0 @@ foreground, |
27552
435