@oxy.so/app-preset 6.5.1 → 6.6.0
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 +28 -0
- package/css/document-scroll.css +9 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -489,3 +489,31 @@ Requires **Expo SDK 56+**; validated against **Expo SDK 58 / React Native 0.88**
|
|
|
489
489
|
uses `proguard-android-optimize.txt` and turns R8 on through `gradle.properties`
|
|
490
490
|
(`android.enableMinifyInReleaseBuilds`), so the preset's `-optimize` ProGuard
|
|
491
491
|
swap only changes anything on SDK 56/57.
|
|
492
|
+
|
|
493
|
+
### Web document scrolling versus a bounded host
|
|
494
|
+
|
|
495
|
+
The document-scroll stylesheet is available from app-preset 6.6.0.
|
|
496
|
+
|
|
497
|
+
The base stylesheet preserves Expo's bounded host: `body` cannot scroll and a
|
|
498
|
+
bounded `ScrollView`/Bloom `Screen` owns its region. Keep that default for apps
|
|
499
|
+
whose routes fit the viewport.
|
|
500
|
+
|
|
501
|
+
For an application that uses document flow (for example Bloom `AppShell
|
|
502
|
+
scroll="page"` with `panelLayout.flow="document"`), explicitly import the host
|
|
503
|
+
recipe after the base in the app's `global.css`:
|
|
504
|
+
|
|
505
|
+
```css
|
|
506
|
+
@import "@oxy.so/app-preset/base.css";
|
|
507
|
+
@import "@oxy.so/app-preset/css/document-scroll.css";
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
This enables body overflow without changing the root's height or removing Expo's
|
|
511
|
+
reset. Bounded regions can still own their own scroll inside that host; do not add
|
|
512
|
+
an outer `ScrollView` around a document-owning Screen. This CSS only configures
|
|
513
|
+
the web host; native scroll remains owned by the native Screen/ScrollView.
|
|
514
|
+
|
|
515
|
+
Configure this in the stylesheet, not only in a custom `+html.tsx`: Expo's
|
|
516
|
+
`web.output="single"` export uses its default HTML and does not render that custom
|
|
517
|
+
document. Static output must keep its script/style `headNodes` and `bodyNodes`.
|
|
518
|
+
The generated scaffold defaults to a bounded host. Changing the host permission
|
|
519
|
+
is separate from choosing the scroll owner for each route.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* Explicit web host opt-in for document-owned scrolling (for example Bloom
|
|
2
|
+
* AppShell scroll="page"). Expo's default reset intentionally disables body
|
|
3
|
+
* scrolling for bounded ScrollViews. Keep that default in base.css; import this
|
|
4
|
+
* stylesheet only when the application's host allows document flow.
|
|
5
|
+
* The selector beats Expo's body reset regardless of stylesheet order. Retain
|
|
6
|
+
* root/viewport geometry so bounded screens keep their existing scroll owner. */
|
|
7
|
+
html body {
|
|
8
|
+
overflow: auto;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/app-preset",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "The Oxy distro of Expo — centralized Expo config plugin, Metro/Babel/ESLint factories, Tailwind base CSS and TypeScript bases shared by every Oxy app (Mention, Homiio, Allo, accounts, …). A zero-build package: apps replace copy-pasted config with a single dependency bump.",
|
|
5
5
|
"main": "./app.plugin.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"./tsconfig/base.json": "./tsconfig/base.json",
|
|
29
29
|
"./tsconfig/frontend.json": "./tsconfig/frontend.json",
|
|
30
30
|
"./tsconfig/backend.json": "./tsconfig/backend.json",
|
|
31
|
-
"./package.json": "./package.json"
|
|
31
|
+
"./package.json": "./package.json",
|
|
32
|
+
"./css/document-scroll.css": "./css/document-scroll.css"
|
|
32
33
|
},
|
|
33
34
|
"files": [
|
|
34
35
|
"NOTICE",
|