Use SVG Filters
mainSVG Filters allow you to process an element's rendering (e.g., blurring, color intensity, warping) before it is composited.
Supported Filters (Native):
FeBlendFeCompositeFeColorMatrixFeDropShadowFeFloodFeGaussianBlurFeMergeFeOffset
Note: Some filters may not be implemented on native platforms yet but will work on the Web. If a filter is unsupported on native, a warning will be displayed.
To use a filter, define a <Filter> element with an id inside your <Svg> component, and then reference that ID in the filter prop of a target element using the url(#id) syntax.
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>
);
};