@kbach/react-native 1.0.0-beta.4 → 1.0.0-beta.5
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/README.md +8 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -82,6 +82,11 @@ Architecture off, turn it on in `app.json`
|
|
|
82
82
|
EAS Build works the same way — it runs the same `prebuild` step, so no
|
|
83
83
|
extra configuration beyond the two steps above.
|
|
84
84
|
|
|
85
|
+
See `apps/expo-sandbox` in the [repo](https://github.com/semsakadanupol/kbach)
|
|
86
|
+
for a full working reference project covering both this section and Expo
|
|
87
|
+
Web below — including the `metro.config.js` a monorepo setup like this one
|
|
88
|
+
needs (a plain single-app install doesn't need it).
|
|
89
|
+
|
|
85
90
|
### Expo Web
|
|
86
91
|
|
|
87
92
|
**Works — no extra setup, no separate package, no init call.** `expo start
|
|
@@ -104,8 +109,9 @@ for what's covered.
|
|
|
104
109
|
## What this is
|
|
105
110
|
|
|
106
111
|
- A JSX runtime (`@kbach/react-native/jsx-runtime`) that intercepts
|
|
107
|
-
`className`/`kb` props on every element and calls into the native
|
|
108
|
-
to resolve them to a style object,
|
|
112
|
+
`className`/`kb` props on every element and calls into the native/WASM
|
|
113
|
+
bridge (whichever platform you're on) to resolve them to a style object,
|
|
114
|
+
synchronously, on every render.
|
|
109
115
|
- A Babel plugin (`@kbach/react-native/babel-plugin`) that routes your
|
|
110
116
|
app's own files (never `node_modules`) through that JSX runtime via a
|
|
111
117
|
per-file `@jsxImportSource` pragma.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kbach/react-native",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"description": "Kbach's utility-class styling engine for React Native — the same class names as @kbach/react, resolved to a StyleSheet-ready style object via a Kotlin/JNI TurboModule (native) or the same WASM engine @kbach/react uses (Expo Web / react-native-web). Ships its own native Android module — one npm install, no separate native package. Beta. Native is Android-only (no iOS bridge yet); works with the React Native CLI or an Expo dev client (not Expo Go, which cannot load any custom native module).",
|
|
5
5
|
"keywords": ["css", "react-native", "expo", "tailwind", "utility-first", "styling", "android", "web", "wasm"],
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"generate:wasm-base64": "node ../core-engine/scripts/generate-wasm-base64.mjs src/wasmBinary.generated.ts"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@kbach/core-engine": "1.0.0-beta.
|
|
67
|
+
"@kbach/core-engine": "1.0.0-beta.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/react": "^19.2.0",
|