@sbaiahmed1/react-native-blur 4.5.5-beta.6 → 4.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,6 +70,8 @@ class ReactNativeBlurSwitch : BlurSwitchButtonView {
70
70
  */
71
71
  private fun initializeSwitch() {
72
72
  try {
73
+ blurRounds = 5
74
+
73
75
  setOnCheckedChangeListener { isChecked ->
74
76
  if (isDisabled) {
75
77
  setChecked(currentValue, false)
@@ -91,6 +91,7 @@ class ReactNativeBlurView : BlurViewGroup {
91
91
  super.setBackgroundColor(currentOverlayColor)
92
92
  clipChildren = true
93
93
  clipToOutline = true
94
+ blurRounds = 5
94
95
  super.setDownsampleFactor(6.0F)
95
96
  }
96
97
 
@@ -93,7 +93,11 @@ class ReactNativeProgressiveBlurView : FrameLayout {
93
93
  setWillNotDraw(false)
94
94
 
95
95
  // Set transparent background for the container
96
- super.setBackgroundColor(Color.TRANSPARENT)
96
+ super.setBackgroundColor(currentOverlayColor)
97
+
98
+ // Force the initialization of the blur child here to ensure it's created,
99
+ // but the actual blur setup will be deferred to onAttachedToWindow
100
+ initializeBlurChild()
97
101
  }
98
102
 
99
103
  /**
@@ -125,7 +129,7 @@ class ReactNativeProgressiveBlurView : FrameLayout {
125
129
  blurView = BlurView(context, null).apply {
126
130
  layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
127
131
  setDownsampleFactor(6.0F)
128
- blurRounds = 3
132
+ blurRounds = 5
129
133
  }
130
134
  addView(blurView)
131
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sbaiahmed1/react-native-blur",
3
- "version": "4.5.5-beta.6",
3
+ "version": "4.5.6",
4
4
  "description": "React native modern blur view",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",