breaking(web): support forwardedRef

This commit is contained in:
Mikael Sand
2019-10-04 18:26:33 +03:00
parent 88d7ebf360
commit 8d1380aa01
+5
View File
@@ -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;