Hi everyone!
We've been working on implementing filters in react-native-svg for a while now. This update is intended to inform you about our progress and facilitate discussion on implementation and future plans.
Progress
Here is a list of the filters along with annotations on their current status:
Filter component
Filters
Example usage
import React from 'react';
import { FeColorMatrix, Filter, Rect, Svg } from 'react-native-svg';
export default () => {
return (
<Svg height="300" width="300">
<Filter id="myFilter">
<FeColorMatrix type="saturate" values="0.2" />
</Filter>
<Rect
x="0"
y="0"
width="300"
height="300"
fill="red"
filter="url(#myFilter)"
/>
</Svg>
);
};
This issue is the successor to #150 and address the #176 #635 #883 #1216
Hi everyone!
We've been working on implementing filters in
react-native-svgfor a while now. This update is intended to inform you about our progress and facilitate discussion on implementation and future plans.Progress
Here is a list of the filters along with annotations on their current status:
Filter component
Filtercomponent feat: filters support FeColorMatrix and FilterImage #2316 [released]x, y, width, height, filterUnits, primitiveUnits[todo]FilterPrimitivefeat: filters support FeColorMatrix and FilterImage #2316 [released]filterprop on renderable elements feat: filters support FeColorMatrix and FilterImage #2316 [released]Filters
FeColorMatrixfeat: filters support FeColorMatrix and FilterImage #2316 [released]FeGaussianBlurfeat: addFeGaussianBlurfilter #2352 [released]FeOffsetfeat: addFeOffsetfilter #2361 [released]FeMerge,FeMergeNodefeat: addFeMergeandFeMergeNodefilters #2369 [released]FeFloodfeat: FeFlood #2487 [released]FeBlendfeat: FeBlend #2489 [released]FeCompositefeat: FeComposite filter #2433 [released]FeDropShadowfeat: FeDropShadow #2514 [released]FeComponentTransfer[work in progress]FeFuncRFeFuncGFeFuncBFeFuncAExample usage
This issue is the successor to #150 and address the #176 #635 #883 #1216