Open mo22 opened 4 years ago
I couldn't get it to work. Are you sure ?
I made a PR if you wanna contribute, I was full of hope, but no success on my side :'(
Did it fail to compile or did it not produce the expected result?
Sorry, I wasn't very clear. No problem for the compilation, but I don't get any background. Basically, I just get a transparent background.
Were you able to get it to work correctly ? It might come from my side, i'm not sure
EDIT : It's working now ! Thanks for the code ! I need to update the documentation to remove the viewRef
Hi, I made a working demo at https://github.com/mo22/blur-test
There looks to be an issue with the exact border of the blurred area (that's the Platform.select part in the blur view with the margins). Not sure where that comes from.
I'm also seeing good results with the diff. I noticed https://github.com/react-native-community/react-native-blur/pull/358, what's holding us back from getting this merged?
should be
setHasFixedTransformationMatrix(false)
in the settings, that fixes some offset errors.
Hi, This PR is gonna take care of it : https://github.com/react-native-community/react-native-blur/pull/358 no more need for viewRef on Android AND BlurView can have children now.
https://github.com/Dimezis/BlurView supports blurring the view tree behind the view, not requiring the current nasty workaround with the viewRef property.
The patch below works fine for me.