svgr icon indicating copy to clipboard operation
svgr copied to clipboard

Add support for filter element to babel-plugin-transform-react-native-svg

Open adorum opened this issue 1 year ago • 2 comments

🚀 Feature Proposal

react-native-svg already supports some of filter elements e.g. Filter, FeColorMatrix, FeGaussianBlur,... (all listed here https://github.com/software-mansion/react-native-svg/issues/2362),

Motivation

Would be fine to support svg filter in react-native apps in order to achieve e.g. shadows.

adorum avatar Nov 04 '24 14:11 adorum

It would be great to add the Filter support. Currently, we get this when transforming SVGs with the filter attribute on react-svgr.com: /* SVGR has dropped some elements not supported by react-native-svg: filter */

Even though, react-native-svg does indeed support them.

jolindroth avatar Feb 15 '25 11:02 jolindroth

https://github.com/gregberge/svgr/pull/969 I had this pr from so long but not merged or look on yet

mzaien avatar Aug 17 '25 21:08 mzaien