mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +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,
|
||||
preserveAspectRatio,
|
||||
} = props;
|
||||
const matrix = extractTransform(patternTransform || transform || props);
|
||||
return (
|
||||
<RNSVGPattern
|
||||
ref={this.refMethod}
|
||||
@@ -32,7 +33,8 @@ export default class Pattern extends Shape {
|
||||
y={y}
|
||||
width={width}
|
||||
height={height}
|
||||
patternTransform={extractTransform(patternTransform || transform || props)}
|
||||
matrix={matrix}
|
||||
patternTransform={matrix}
|
||||
patternUnits={units[patternUnits] || 0}
|
||||
patternContentUnits={
|
||||
patternContentUnits ? units[patternContentUnits] : 1
|
||||
|
||||
Reference in New Issue
Block a user