expo-android-glass-view 0.1.7 → 0.1.8
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 +1 -1
- package/README.md +10 -6
- package/android/build.gradle +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -13,7 +13,11 @@ The glass effects and the components come from
|
|
|
13
13
|
the glass see the React Native screen behind it is adapted from
|
|
14
14
|
[QWEA0/Liquid-Glass-Android](https://github.com/QWEA0/Liquid-Glass-Android).
|
|
15
15
|
|
|
16
|
-
>
|
|
16
|
+
> [!WARNING]
|
|
17
|
+
> **⚠️ EXPERIMENTAL — NOT PRODUCTION READY**
|
|
18
|
+
>
|
|
19
|
+
> This is an early **0.1 release**. APIs, behavior and native implementation may change before `1.0`.
|
|
20
|
+
> **Use it for experiments and prototypes, not production apps yet.**
|
|
17
21
|
|
|
18
22
|
```tsx
|
|
19
23
|
import {
|
|
@@ -392,11 +396,11 @@ React Native screen behind it_).
|
|
|
392
396
|
Measured with `adb shell dumpsys gfxinfo` and `atrace` on a release build, on a mid-range phone:
|
|
393
397
|
Xiaomi 24117RN76E, MediaTek Helio G99, Android 16, 120 Hz.
|
|
394
398
|
|
|
395
|
-
| Screen
|
|
396
|
-
|
|
|
397
|
-
| Static screen, nothing moving
|
|
398
|
-
| Scrolling a list under a glass header, a glass button and the tab bar
|
|
399
|
-
| 6 glass tiles over an animated backdrop, plus glass panels and controls
|
|
399
|
+
| Screen | Glass views | Result |
|
|
400
|
+
| ----------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------- |
|
|
401
|
+
| Static screen, nothing moving | 3 | 0 frames rendered while idle |
|
|
402
|
+
| Scrolling a list under a glass header, a glass button and the tab bar | 3 | no missed frames; 90% of frames within 14 ms |
|
|
403
|
+
| 6 glass tiles over an animated backdrop, plus glass panels and controls | 17 | about 70 fps, no missed frames; the RenderThread needs ~14 ms per frame |
|
|
400
404
|
|
|
401
405
|
In practice:
|
|
402
406
|
|
package/android/build.gradle
CHANGED
|
@@ -14,13 +14,13 @@ plugins {
|
|
|
14
14
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
15
15
|
|
|
16
16
|
group = 'expo.modules.androidglassview'
|
|
17
|
-
version = '0.1.
|
|
17
|
+
version = '0.1.7'
|
|
18
18
|
|
|
19
19
|
android {
|
|
20
20
|
namespace "expo.modules.androidglassview"
|
|
21
21
|
defaultConfig {
|
|
22
22
|
versionCode 1
|
|
23
|
-
versionName "0.1.
|
|
23
|
+
versionName "0.1.7"
|
|
24
24
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
|
25
25
|
}
|
|
26
26
|
buildFeatures {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-android-glass-view",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
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",
|