Skip to content

Commit

Permalink
Allows wrapper proptype to be a ForwardRef component (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Webmaster1116 committed Jan 24, 2019
1 parent c2eb156 commit cd42888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export const propTypes = {
playsinline: bool,
pip: bool,
light: oneOfType([ bool, string ]),
wrapper: oneOfType([ string, func ]),
wrapper: oneOfType([
string,
func,
shape({ render: func.isRequired })
]),
config: shape({
soundcloud: shape({
options: object
Expand Down

0 comments on commit cd42888

Please sign in to comment.