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

TEXT DIFFUSION OVER IMAGE

Open javiercastaneda303 opened this issue 1 year ago • 3 comments

Hello,

I'm Javi, an engineer at Kubik. My team and I are in a rush.

We're using the "@react-native-community/blur" library, but we've encountered an issue where applying a glow to a photograph also affects the text in front of the photograph.

We've set the z-index to 0 for the photograph, 1 for the blur, and 2 for the text. However, when we add blurRadius, it becomes impossible to work with blurAmount.

We'd like to support both Android and iOS. So the question arises: is there a mistake in our implementation? Should it be possible to blur only the image and not the text? Do we need to add a new feature to the library? What can we do?

We believe that there is a fantastic community behind this library (@react-native-community/blur). Please let us know if there is a solution. image

return (
    <>
      {visible && (
        <View style={styles.containerCardBlur}>
          <BlurView
            // blurAmount={1}
            blurRadius={15}
            overlayColor="rgba(252, 252, 252, 0.04)"
            reducedTransparencyFallbackColor="white"
            style={styles.cardBlur}
          />
        </View>
      )}
    </>

javiercastaneda303 avatar Mar 28 '23 11:03 javiercastaneda303

same issue here!

dutradotdev avatar Apr 18 '23 22:04 dutradotdev

Same issue here. I even tried keeping two layers, layer 1 will have the blur and layer 2 will have the content, but then also it got diffused. Somebody please answer this

npaul2173 avatar Jul 15 '23 07:07 npaul2173

Any updates to this? I am having the same issue when using the blur in a header

hugohutri avatar Nov 26 '23 10:11 hugohutri