mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 15:44:24 +00:00
breaking(web): support forwardedRef
This commit is contained in:
@@ -25,6 +25,7 @@ function prepare(props) {
|
|||||||
fontWeight,
|
fontWeight,
|
||||||
fontStyle,
|
fontStyle,
|
||||||
style,
|
style,
|
||||||
|
forwardedRef,
|
||||||
...clean
|
...clean
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
@@ -57,6 +58,10 @@ function prepare(props) {
|
|||||||
clean.transform = transform.join(' ');
|
clean.transform = transform.join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (forwardedRef) {
|
||||||
|
clean.ref = forwardedRef;
|
||||||
|
}
|
||||||
|
|
||||||
const styles: {
|
const styles: {
|
||||||
fontStyle?: string;
|
fontStyle?: string;
|
||||||
fontFamily?: string;
|
fontFamily?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user