mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
Implement basic support for Pattern element
This commit is contained in:
@@ -161,6 +161,20 @@ const GradientAttributes = {
|
||||
}
|
||||
};
|
||||
|
||||
const PatternAttributes = {
|
||||
...ViewBoxAttributes,
|
||||
name: true,
|
||||
x: true,
|
||||
y: true,
|
||||
patternwidth: true,
|
||||
patternheight: true,
|
||||
patternUnits: true,
|
||||
patternContentUnits: true,
|
||||
patternTransform: {
|
||||
diff: arrayDiffer
|
||||
}
|
||||
};
|
||||
|
||||
const LinearGradientAttributes = {
|
||||
...GradientAttributes,
|
||||
x1: true,
|
||||
@@ -240,5 +254,6 @@ export {
|
||||
SymbolAttributes,
|
||||
LinearGradientAttributes,
|
||||
RadialGradientAttributes,
|
||||
ViewBoxAttributes
|
||||
ViewBoxAttributes,
|
||||
PatternAttributes
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user