diff --git a/src/ReactNativeSVG.web.ts b/src/ReactNativeSVG.web.ts index faf681ff..c2f8b1d6 100644 --- a/src/ReactNativeSVG.web.ts +++ b/src/ReactNativeSVG.web.ts @@ -25,6 +25,7 @@ function prepare(props) { fontWeight, fontStyle, style, + forwardedRef, ...clean } = props; @@ -57,6 +58,10 @@ function prepare(props) { clean.transform = transform.join(' '); } + if (forwardedRef) { + clean.ref = forwardedRef; + } + const styles: { fontStyle?: string; fontFamily?: string;