mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
fix: FeComposite add default value for k1...4 (#2557)
# Summary Fixes #2552 by adding default value for k1, k2, k3, k4 according to the spec: https://www.w3.org/TR/SVG11/filters.html#feCompositeElement > If the attribute is not specified, the effect is as if a value of 0 were specified. ## Test Plan [Repro from issue 2552](https://github.com/TomCorvus/RNSVG/blob/main/App.js) ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | MacOS | ✅ |
This commit is contained in:
@@ -30,6 +30,10 @@ export default class FeComposite extends FilterPrimitive<FeCompositeProps> {
|
||||
|
||||
static defaultProps = {
|
||||
...this.defaultPrimitiveProps,
|
||||
k1: 0,
|
||||
k2: 0,
|
||||
k3: 0,
|
||||
k4: 0,
|
||||
};
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user