react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

FeGaussianBlur not the same in iOS and Android

Open kristian-nst opened this issue 10 months ago • 6 comments

Description

The filter in Android barely blurs the object, but in iOS it does, based on the stdDeviation prop.

Any higher thanstdDeviation={15} is where Android stops blurring more. Is this known?

Steps to reproduce

    <View
      style={{
        position: 'absolute',
        backgroundColor: 'black',
        top: 0,
        bottom: 0,
        left: 0,
        right: 0,
      }}
    >
      <Svg height="500" width="500" viewBox="0 0 1000 1000">
        <Filter id="myFilter" x={-300} y={-300} width={1000} height={1000}>
          <FeGaussianBlur in="SourceGraphic" stdDeviation={100} />
        </Filter>
        <Circle
          cx="800"
          cy="-100"
          r="550"
          fill={topRightColor}
          strokeWidth={0}
          filter="url(#myFilter)"
        />
      </Svg>
  </View>

Image

Snack or a link to a repository

SVG version

15.8.0

React Native version

0.76.3

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo Dev Client

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Android emulator

Device model

Pixel_6a_API_35

Acknowledgements

Yes

kristian-nst avatar Feb 21 '25 16:02 kristian-nst

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Snack or a link to a repository section.

github-actions[bot] avatar Feb 21 '25 16:02 github-actions[bot]

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

github-actions[bot] avatar Feb 21 '25 16:02 github-actions[bot]

same issue here, how did you resolve it?

antoinerousseau avatar Jul 07 '25 14:07 antoinerousseau

Whats the solution for this issue? I'm having the same problem

colin-oos avatar Jul 11 '25 03:07 colin-oos

Hello @antoinerousseau @colin-oos, As I see, you couldn't provide more than 25 on the Android platform. Here is a PR with the implementation of FeGaussianBlur. https://github.com/software-mansion/react-native-svg/pull/2352

bohdanprog avatar Jul 12 '25 15:07 bohdanprog

same issue

KingMatrix1989 avatar Sep 12 '25 09:09 KingMatrix1989

same here, any solutions?

terka-codes avatar Nov 17 '25 12:11 terka-codes