Skip to content

Commit

Permalink
fix(android): crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed Sep 23, 2023
1 parent 4072a5a commit 2b7a135
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BlurViewViewManager : SimpleViewManager<BlurView>() {
val blurView = BlurView(reactContext.baseContext).also {
it.layoutParams = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
val decorView = reactContext.currentActivity
val rootView = decorView?.findViewById<BlurView>(R.id.blurView)
val rootView = decorView?.findViewById(android.R.id.content) as? ViewGroup
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
if (rootView != null) {
it.setupWith(rootView, RenderEffectBlur())
Expand Down
12 changes: 0 additions & 12 deletions android/src/main/res/layout/layout.xml

This file was deleted.

0 comments on commit 2b7a135

Please sign in to comment.