Skip to content

Commit 2b7a135

Browse files
author
Gary Tokman
committed
fix(android): crash
1 parent 4072a5a commit 2b7a135

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

android/src/main/java/com/candlefinance/blurview/BlurViewViewManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BlurViewViewManager : SimpleViewManager<BlurView>() {
1919
val blurView = BlurView(reactContext.baseContext).also {
2020
it.layoutParams = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
2121
val decorView = reactContext.currentActivity
22-
val rootView = decorView?.findViewById<BlurView>(R.id.blurView)
22+
val rootView = decorView?.findViewById(android.R.id.content) as? ViewGroup
2323
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
2424
if (rootView != null) {
2525
it.setupWith(rootView, RenderEffectBlur())

android/src/main/res/layout/layout.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)