glacia-native 0.6.0 → 0.6.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.
|
@@ -57,14 +57,16 @@ function routerFor(module) {
|
|
|
57
57
|
* reads the native module and answers true only on iOS 26+, its Android build
|
|
58
58
|
* answers for the AGSL tier — so loading it is how the verdict is learned.
|
|
59
59
|
*/
|
|
60
|
-
const ENGINE_MODULE_ID = "../engine";
|
|
61
60
|
function requireEngineModule() {
|
|
62
|
-
|
|
63
|
-
const req = typeof require === "function" ? require : scope.require;
|
|
64
|
-
if (typeof req !== "function")
|
|
61
|
+
if (typeof require !== "function")
|
|
65
62
|
return null;
|
|
66
63
|
try {
|
|
67
|
-
|
|
64
|
+
// Metro only bundles calls spelled literally require("<string>"): the
|
|
65
|
+
// callee must be the `require` identifier AND the argument a string
|
|
66
|
+
// literal. A call through a local alias or with a variable module id
|
|
67
|
+
// is never collected, so the engine would be missing from the bundle
|
|
68
|
+
// (UnknownModuleError at launch).
|
|
69
|
+
const module = require("../engine");
|
|
68
70
|
return module ?? null;
|
|
69
71
|
}
|
|
70
72
|
catch {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glacia-native",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "Liquid Glass UI components for React Native
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Liquid Glass UI components for React Native \u2014 real iOS 26 glass, with a clean fallback on Android and older iOS.",
|
|
5
5
|
"author": "Binyam Feyissa (https://github.com/binyamfeyissa)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"lib",
|
|
22
22
|
"src"
|
|
23
23
|
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc --project tsconfig.build.json",
|
|
26
|
+
"typecheck": "tsc --noEmit",
|
|
27
|
+
"test": "vitest run"
|
|
28
|
+
},
|
|
24
29
|
"peerDependencies": {
|
|
25
30
|
"expo": "*",
|
|
26
31
|
"react": ">=18",
|
|
@@ -32,7 +37,7 @@
|
|
|
32
37
|
"@react-native-community/blur": ">=4"
|
|
33
38
|
},
|
|
34
39
|
"dependencies": {
|
|
35
|
-
"glacia-tokens": "
|
|
40
|
+
"glacia-tokens": "workspace:*"
|
|
36
41
|
},
|
|
37
42
|
"devDependencies": {
|
|
38
43
|
"@testing-library/react": "^16.3.3",
|
|
@@ -53,10 +58,5 @@
|
|
|
53
58
|
"@react-native-community/blur": {
|
|
54
59
|
"optional": true
|
|
55
60
|
}
|
|
56
|
-
},
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "tsc --project tsconfig.build.json",
|
|
59
|
-
"typecheck": "tsc --noEmit",
|
|
60
|
-
"test": "vitest run"
|
|
61
61
|
}
|
|
62
|
-
}
|
|
62
|
+
}
|
|
@@ -111,14 +111,15 @@ export function routerFor(module: LiquidGlassModule | null | undefined): GlassRo
|
|
|
111
111
|
* reads the native module and answers true only on iOS 26+, its Android build
|
|
112
112
|
* answers for the AGSL tier — so loading it is how the verdict is learned.
|
|
113
113
|
*/
|
|
114
|
-
const ENGINE_MODULE_ID = "../engine";
|
|
115
|
-
|
|
116
114
|
function requireEngineModule(): any | null {
|
|
117
|
-
|
|
118
|
-
const req = typeof require === "function" ? require : scope.require;
|
|
119
|
-
if (typeof req !== "function") return null;
|
|
115
|
+
if (typeof require !== "function") return null;
|
|
120
116
|
try {
|
|
121
|
-
|
|
117
|
+
// Metro only bundles calls spelled literally require("<string>"): the
|
|
118
|
+
// callee must be the `require` identifier AND the argument a string
|
|
119
|
+
// literal. A call through a local alias or with a variable module id
|
|
120
|
+
// is never collected, so the engine would be missing from the bundle
|
|
121
|
+
// (UnknownModuleError at launch).
|
|
122
|
+
const module = require("../engine");
|
|
122
123
|
return module ?? null;
|
|
123
124
|
} catch {
|
|
124
125
|
// The engine (or its native module) is not resolvable here: unsupported.
|