Skip to content

Commit

Permalink
breaking(web): support forwardedRef
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Oct 4, 2019
1 parent 88d7ebf commit 8d1380a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ReactNativeSVG.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function prepare(props) {
fontWeight,
fontStyle,
style,
forwardedRef,
...clean
} = props;

Expand Down Expand Up @@ -57,6 +58,10 @@ function prepare(props) {
clean.transform = transform.join(' ');
}

if (forwardedRef) {
clean.ref = forwardedRef;
}

const styles: {
fontStyle?: string;
fontFamily?: string;
Expand Down

0 comments on commit 8d1380a

Please sign in to comment.