mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 07:06:04 +00:00
add viewBox support for android
This commit is contained in:
+5
-4
@@ -20,16 +20,17 @@ class SymbolElement extends Component{
|
||||
}
|
||||
|
||||
let content = viewBox ? <ViewBox
|
||||
name={props.id}
|
||||
viewBox={viewBox}
|
||||
preserveAspectRatio={props.preserveAspectRatio}
|
||||
>
|
||||
{props.children}
|
||||
</ViewBox> : props.children;
|
||||
</ViewBox> : <G id={props.id}>
|
||||
{props.children}
|
||||
</G>;
|
||||
|
||||
return <Defs>
|
||||
<G id={props.id}>
|
||||
{content}
|
||||
</G>
|
||||
{content}
|
||||
</Defs>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user