diff --git a/lib/ParallaxView.js b/lib/ParallaxView.js index 776bdb3..4af4df4 100644 --- a/lib/ParallaxView.js +++ b/lib/ParallaxView.js @@ -30,6 +30,8 @@ var ParallaxView = React.createClass({ // Opaque type returned by require('./image.jpg') React.PropTypes.number, ]), + scrollableViewStyle: React.PropTypes.any, + backgroundStyle: React.PropTypes.any, header: React.PropTypes.node, blur: React.PropTypes.string, contentInset: React.PropTypes.object, @@ -63,7 +65,7 @@ var ParallaxView = React.createClass({ }, renderBackground: function () { - var { windowHeight, backgroundSource, blur } = this.props; + var { windowHeight, backgroundSource, backgroundStyle, blur } = this.props; var { scrollY } = this.state; if (!windowHeight || !backgroundSource) { return null; @@ -83,7 +85,7 @@ var ParallaxView = React.createClass({ outputRange: [2, 1, 1] }) }] - }]} + }, backgroundStyle]} source={backgroundSource}> {/* !!blur && (BlurView || (BlurView = require('react-native-blur').BlurView)) &&