mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-25 12:03:27 +00:00
breaking(web): support forwardedRef
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user