Merge pull request #26828 from prokopcm/master

Expo: Add support for missing height and width Svg.Use props
This commit is contained in:
Paul van Brenk
2018-06-26 10:35:39 -07:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -478,6 +478,7 @@ async () => {
/>
</Svg.G>
<Svg.Use href="#shape" x="20" y="0" />
<Svg.Use href="#shape" x="20" y="0" width="20" height="20"/>
<Svg.Symbol id="symbol" viewBox="0 0 150 110" width="100" height="50">
<Svg.Circle cx="50" cy="50" r="40" strokeWidth="8" stroke="red" fill="red"/>
<Svg.Circle cx="90" cy="60" r="40" strokeWidth="8" stroke="green" fill="white"/>
+2
View File
@@ -2076,6 +2076,8 @@ export interface SvgUseProps extends SvgCommonProps {
href: string;
x: number | string;
y: number | string;
width?: number | string;
height?: number | string;
}
export interface SvgSymbolProps extends SvgCommonProps {