fix(android): build issue on compileSdkVersion < 31 (#485)

This commit is contained in:
Artur Y 2022-08-03 16:13:55 +02:00 committed by GitHub
parent 2bbc512083
commit 6273292c9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class BlurViewManager extends ViewGroupManager<BlurView> {
.getDecorView();
ViewGroup rootView = decorView.findViewById(android.R.id.content);
Drawable windowBackground = decorView.getBackground();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
if (Build.VERSION.SDK_INT >= 31) {
blurView
.setupWith(rootView, new RenderEffectBlur())
.setFrameClearDrawable(windowBackground)