Skip to content

Commit

Permalink
Merge pull request #28 from daemonchen/master
Browse files Browse the repository at this point in the history
fixed backgroundSource Type warning
  • Loading branch information
lelandrichardson committed Sep 16, 2016
2 parents c6405fe + b7b8bc6 commit 34d60a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/ParallaxView.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ var ParallaxView = React.createClass({
propTypes: {
...ScrollViewPropTypes,
windowHeight: React.PropTypes.number,
backgroundSource: React.PropTypes.object,
backgroundSource: React.PropTypes.oneOfType([
React.PropTypes.shape({
uri: React.PropTypes.string,
}),
// Opaque type returned by require('./image.jpg')
React.PropTypes.number,
]),
header: React.PropTypes.node,
blur: React.PropTypes.string,
contentInset: React.PropTypes.object,
Expand Down

0 comments on commit 34d60a3

Please sign in to comment.