mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 00:12:21 +00:00
Refactor svg bounds extraction
This commit is contained in:
+2
-5
@@ -102,16 +102,13 @@ class Svg extends Shape {
|
||||
flex: 0,
|
||||
} : null;
|
||||
|
||||
const w = String(width);
|
||||
const h = String(height);
|
||||
|
||||
return (
|
||||
<NativeSvgView
|
||||
{...props}
|
||||
bbWidth={w}
|
||||
bbHeight={h}
|
||||
tintColor={color}
|
||||
onLayout={onLayout}
|
||||
bbWidth={String(width)}
|
||||
bbHeight={String(height)}
|
||||
{...extractResponder(props, this)}
|
||||
{...extractViewBox({ viewBox, preserveAspectRatio })}
|
||||
ref={ele => {
|
||||
|
||||
Reference in New Issue
Block a user