expo-android-glass-view 1.0.0 → 1.0.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.1 — 2026-10-18
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- `AndroidGlassMenu` now draws its drop shadow. The menu's animation layer clipped everything
|
|
8
|
+
inside it to the menu's shape, including the shadow, so `shadow` and `shadowOpacity` had no
|
|
9
|
+
visible effect. The glass surface now clips itself and the animation layer only scales and
|
|
10
|
+
fades, so the shadow shows around the menu and follows its opening animation.
|
|
11
|
+
|
|
12
|
+
### Compatibility
|
|
13
|
+
|
|
14
|
+
- Rebuild the Android app or development client; this is a native change. iOS and web are
|
|
15
|
+
unchanged.
|
|
16
|
+
|
|
3
17
|
## 1.0.0 — 2026-09-21
|
|
4
18
|
|
|
5
19
|
### Changed
|
|
@@ -340,10 +340,13 @@ class AndroidGlassMenuPanel(context: Context, appContext: AppContext) : GlassHos
|
|
|
340
340
|
}
|
|
341
341
|
.requiredSize((if(fixedLayer) layoutWidth else width).coerceAtLeast(1f).dp,
|
|
342
342
|
(if(fixedLayer) layoutHeight else height).coerceAtLeast(1f).dp)
|
|
343
|
-
|
|
343
|
+
// The backdrop node clips itself to the silhouette. The outer layer only
|
|
344
|
+
// scales and fades: it wraps the drop shadow, so clipping it there cut the
|
|
345
|
+
// shadow off entirely (shadow/shadowOpacity had no visible effect).
|
|
346
|
+
.drawBackdrop(backdrop = backdrop, shape = { silhouette }, clipToShape = true, layerBlock = {
|
|
344
347
|
transformOrigin = TransformOrigin(0f,0f)
|
|
345
348
|
this.scaleX = surfaceScaleX; this.scaleY = surfaceScaleY
|
|
346
|
-
this.alpha = overallAlpha
|
|
349
|
+
this.alpha = overallAlpha
|
|
347
350
|
}, effects = {
|
|
348
351
|
glassEffects(menuGlass, effectScale, material, press)
|
|
349
352
|
}, highlight = { menuGlass.rim.copy(alpha = menuGlass.rim.alpha + press * .25f) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-android-glass-view",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Liquid Glass views, buttons, sliders and toggles for React Native on Android (Jetpack Compose, powered by Kyant0/AndroidLiquidGlass)",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"bugs": {
|
|
28
28
|
"url": "https://github.com/kagantemizkan/expo-android-glass-view/issues"
|
|
29
29
|
},
|
|
30
|
-
"author": "
|
|
30
|
+
"author": "Kağan Temizkan <info@sailatlas.app> (https://sailatlas.app)",
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"homepage": "https://github.com/kagantemizkan/expo-android-glass-view#readme",
|
|
33
33
|
"dependencies": {},
|