mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-30 21:49:31 +00:00
fix Symbol svgId undefined bug
This commit is contained in:
@@ -16,6 +16,7 @@ class SymbolElement extends Component{
|
||||
let {props} = this;
|
||||
return <Defs.Item
|
||||
id={props.id}
|
||||
svgId={props.svgId}
|
||||
>
|
||||
<ViewBox
|
||||
{...props}
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ export default function (props) {
|
||||
|
||||
return rgba(props.fill, fillOpacity);
|
||||
} else if (props.fill === undefined) {
|
||||
|
||||
|
||||
let fillOpacity = +props.fillOpacity;
|
||||
if (isNaN(fillOpacity)) {
|
||||
fillOpacity = 1;
|
||||
|
||||
Reference in New Issue
Block a user