Update blur view for Android
Gareth Daunton
It would be nice if BlurView could support blurring on android. It seems like https://github.com/react-native-community/react-native-blur provides a pretty good solution for bluring on both android and ios.
Jake
Window blur / background blur is now offered natively in Android as well since Android 12:
https://source.android.com/docs/core/display/window-blurs
Wondering if we could piggy back off of that functionality for Expo?
Michael Wood
T
Tyler
Expo 46 now has Skia. Looks like RN Skia has an image blur filter. Has anyone tried that yet? I guess the limitation would be that it won't blur UI elements, just images...but could cover a lot of use cases.
Michael Wood
If
@react-native-community/blur
will work for you you should be able to use it in a managed Expo app, as long as you build a dev client instead of using Expo Go, and you build your production app with eas build
instead of the classic expo build
.Based on the installation instructions it does not require anything special. The
pod install
step will be run automatically during the build process.Michael Wood
You might also be able to use React Native Skia for this. It's built into Expo SDK 46.
Philipp Reiter
It would be amazing if we could have this :-)
Tyler Slater
Yeah seems like there is already good code for this, shouldn't be hard. Would Expo accept a PR?
George Khromchenko
Native Android implementation: https://github.com/500px/500px-android-blur
George Khromchenko
They reverted commit of this component. I don't know why. Current blur is incomplete - without Android support and buggy
Ben Herila
It might be helpful if you could explain how you would like it improved? What’s the main difference?
Miguel Ángel Mtz
Ben Herila: the "blur" implementation for android is fake. that's the main difference