@sbaiahmed1/react-native-blur 4.5.5 → 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.
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeBlurSwitch.kt +2 -0
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeBlurView.kt +1 -0
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeProgressiveBlurView.kt +6 -2
- package/package.json +1 -1
package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeProgressiveBlurView.kt
CHANGED
|
@@ -93,7 +93,11 @@ class ReactNativeProgressiveBlurView : FrameLayout {
|
|
|
93
93
|
setWillNotDraw(false)
|
|
94
94
|
|
|
95
95
|
// Set transparent background for the container
|
|
96
|
-
super.setBackgroundColor(
|
|
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 =
|
|
132
|
+
blurRounds = 5
|
|
129
133
|
}
|
|
130
134
|
addView(blurView)
|
|
131
135
|
}
|