From cd4288898f3547644db5322ffa3894b33e297c4d Mon Sep 17 00:00:00 2001 From: markveronich Date: Thu, 24 Jan 2019 21:21:15 +0100 Subject: [PATCH] Allows wrapper proptype to be a ForwardRef component (#556) --- src/props.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/props.js b/src/props.js index 10d5298..5fe8d12 100644 --- a/src/props.js +++ b/src/props.js @@ -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