mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-09 17:30:58 +00:00
[iOS] Fix Pattern element regression, fixes #906
This commit is contained in:
+3
-1
@@ -24,6 +24,7 @@ export default class Pattern extends Shape {
|
|||||||
viewBox,
|
viewBox,
|
||||||
preserveAspectRatio,
|
preserveAspectRatio,
|
||||||
} = props;
|
} = props;
|
||||||
|
const matrix = extractTransform(patternTransform || transform || props);
|
||||||
return (
|
return (
|
||||||
<RNSVGPattern
|
<RNSVGPattern
|
||||||
ref={this.refMethod}
|
ref={this.refMethod}
|
||||||
@@ -32,7 +33,8 @@ export default class Pattern extends Shape {
|
|||||||
y={y}
|
y={y}
|
||||||
width={width}
|
width={width}
|
||||||
height={height}
|
height={height}
|
||||||
patternTransform={extractTransform(patternTransform || transform || props)}
|
matrix={matrix}
|
||||||
|
patternTransform={matrix}
|
||||||
patternUnits={units[patternUnits] || 0}
|
patternUnits={units[patternUnits] || 0}
|
||||||
patternContentUnits={
|
patternContentUnits={
|
||||||
patternContentUnits ? units[patternContentUnits] : 1
|
patternContentUnits ? units[patternContentUnits] : 1
|
||||||
|
|||||||
Reference in New Issue
Block a user