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

[android] Blur effect for a modal view

Open zagoa opened this issue 7 years ago • 10 comments

Hello everyone,

I want to add the blur effect on a Modal in my application. That work perfectly on IOS but for Android I just have a transparent modal. How can I do that for Android ? I need to use background color transparent for my modal and add an image that cover the entire modal and finaly blur it ?

zagoa avatar Nov 27 '17 14:11 zagoa

Same problem here...

camirot avatar Jan 06 '18 14:01 camirot

Same problem too...

sandroferrari avatar Jan 15 '18 09:01 sandroferrari

Same here, when the BlurView had children I got an error on android saying it has to be absolute with no children, so I did that but now I am getting a transparent modal as well, and it's working perfectly on ios

omarkhaled11 avatar Jan 27 '18 16:01 omarkhaled11

Same problem too...

mldb avatar Jan 28 '18 21:01 mldb

Same here

RomanISWG avatar Jan 30 '18 13:01 RomanISWG

same!!!

stantoncbradley avatar Feb 16 '18 23:02 stantoncbradley

update?

mileung avatar Apr 13 '18 20:04 mileung

you can put the view reference on the screen below the modal and the blurView in the modal. It will work when you render the modal. the downsize of this workaround is : your tab bar will not be blur (only tested it with react-native-navigation), it probably works with a js based navigation.

34838358_10156244393168070_8542593899095392256_n

Chamal0f avatar Jun 12 '18 11:06 Chamal0f

@Chamal0f Can you give sample code?

Lizhooh avatar Jul 20 '18 15:07 Lizhooh

What @Chamal0f saying here as I understood is to get the reference (View reference that we want to blur) and pass it to the blurView (View that Import from the library) and keep blurView inside the modal. Then background View will be blurred and modal will appear on top of that.

The problem with that approach is its too hard to manage popup modals which can occur at any place.

samitha9125 avatar Oct 29 '19 18:10 samitha9125