@onekeyfe/react-native-pager-view 6.7.0-4 → 6.7.0-41
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 +21 -0
- package/android/build.gradle +1 -0
- package/android/src/androidTest/AndroidManifest.xml +7 -0
- package/android/src/androidTest/java/com/reactnativepagerview/CollapsiblePagerTabReservationTest.kt +476 -0
- package/android/src/main/java/com/reactnativepagerview/CollapsiblePagerHost.kt +233 -43
- package/android/src/main/java/com/reactnativepagerview/CollapsiblePagerNativeHeaders.kt +596 -27
- package/android/src/main/java/com/reactnativepagerview/CollapsiblePagerViewManager.kt +40 -0
- package/android/src/main/java/com/reactnativepagerview/NativeScrollerScrollAwayInsets.kt +19 -0
- package/android/src/main/java/com/reactnativepagerview/NativeScrollerView.kt +50 -6
- package/android/src/main/java/com/reactnativepagerview/NestedScrollableHost.kt +8 -2
- package/android/src/main/java/com/reactnativepagerview/event/NativeHeaderPressEvent.kt +8 -0
- package/android/src/test/java/com/reactnativepagerview/NativeScrollerScrollAwayInsetsTest.kt +40 -0
- package/docs/SPEC.md +700 -10
- package/ios/RNCCollapsiblePagerViewComponentView.mm +2221 -94
- package/ios/RNCNativeScrollerComponentView.h +2 -0
- package/ios/RNCNativeScrollerComponentView.mm +42 -0
- package/ios/tests/RNCCollapsiblePagerFirstFrameTests.mm +562 -1
- package/ios/tests/RNCCollapsiblePagerHitTestTests.mm +1116 -0
- package/ios/tests/RNCCollapsiblePagerPressCancellationTests.mm +74 -9
- package/ios/tests/RNCCollapsiblePagerRefreshControlTests.mm +50 -0
- package/lib/module/CollapsiblePagerView.js +75 -11
- package/lib/module/CollapsiblePagerView.web.js +653 -8
- package/lib/module/CollapsiblePagerViewNativeComponent.ts +57 -42
- package/lib/module/NativeScroller.web.js +3 -0
- package/lib/module/NativeScrollerNativeComponent.ts +42 -46
- package/lib/module/PagerViewNativeComponent.ts +20 -25
- package/lib/module/WebCollapsiblePagerPage.js +7 -2
- package/lib/module/index.native.js +9 -0
- package/lib/typescript/src/CollapsiblePagerView.d.ts +62 -4
- package/lib/typescript/src/CollapsiblePagerView.web.d.ts +56 -2
- package/lib/typescript/src/CollapsiblePagerViewNativeComponent.d.ts +54 -38
- package/lib/typescript/src/NativeScroller.d.ts +5 -3
- package/lib/typescript/src/NativeScroller.web.d.ts +1 -1
- package/lib/typescript/src/NativeScrollerNativeComponent.d.ts +47 -48
- package/lib/typescript/src/PagerView.d.ts +1 -1
- package/lib/typescript/src/PagerView.web.d.ts +1 -1
- package/lib/typescript/src/PagerViewNativeComponent.d.ts +20 -21
- package/lib/typescript/src/WebCollapsiblePagerPage.d.ts +1 -1
- package/lib/typescript/src/index.native.d.ts +13 -0
- package/lib/typescript/src/usePagerView.d.ts +2 -2
- package/lib/typescript/src/utils.d.ts +2 -2
- package/package.json +22 -7
- package/react-native-pager-view.podspec +1 -0
- package/src/CollapsiblePagerView.tsx +208 -12
- package/src/CollapsiblePagerView.web.tsx +587 -7
- package/src/CollapsiblePagerViewNativeComponent.ts +57 -42
- package/src/NativeScroller.tsx +14 -4
- package/src/NativeScroller.web.tsx +15 -1
- package/src/NativeScrollerNativeComponent.ts +42 -46
- package/src/PagerViewNativeComponent.ts +20 -25
- package/src/WebCollapsiblePagerPage.tsx +7 -2
- package/src/index.native.tsx +30 -0
package/docs/SPEC.md
CHANGED
|
@@ -14,17 +14,57 @@ valid prop values. Both the style and overlay are
|
|
|
14
14
|
disabled by default. On iOS 26 or newer, a local overlay remains fixed at the
|
|
15
15
|
top of the viewport while the owned vertical `UIScrollView` can draw behind it.
|
|
16
16
|
The component measures the overlay's Fabric layout height and owns the
|
|
17
|
-
corresponding top content inset.
|
|
17
|
+
corresponding top content inset.
|
|
18
|
+
For callers with a known initial height, `topOverlayHeightHint` reserves that
|
|
19
|
+
height on the first frame after the overlay is enabled, before Fabric delivers
|
|
20
|
+
`onLayout`. The measured height replaces the hint, and disabling the overlay
|
|
21
|
+
clears the measurement so a later enablement can use a new hint. The hint does
|
|
22
|
+
not enable the effect or reserve an inset without an active local overlay.
|
|
23
|
+
This uses the existing native `topOverlayHeight` prop without changing the
|
|
24
|
+
native interface. For native smooth local Hard mode, a complete Fabric mount
|
|
25
|
+
attaches the overlay slot synchronously before `didMount` returns; incomplete
|
|
26
|
+
slots retain the deferred fallback. It binds UIKit's
|
|
18
27
|
`UIScrollEdgeElementContainerInteraction` to that exact scroll view and selects
|
|
19
28
|
the requested top edge style. Hard has UIKit's dividing line; Soft has its
|
|
20
29
|
gradual blurred transition. A pager owns the effect and inset for its current page;
|
|
21
30
|
its nested NativeList or NativeScroller must not opt into another top overlay.
|
|
22
31
|
Invisible, noninteractive native labels let UIKit recognize the React-drawn
|
|
23
32
|
overlay and sticky header as scroll-edge elements. The pager does not add an
|
|
24
|
-
auxiliary full-area glass
|
|
33
|
+
auxiliary full-area glass. It clips scrolling assets above
|
|
25
34
|
the fixed overlay boundary; during horizontal transitions it clips its owned
|
|
26
35
|
visible page hosts below the current sticky boundary so text cannot pass in
|
|
27
36
|
front of the fixed controls. Masked assets must not intercept their hit targets.
|
|
37
|
+
On iOS 27 or newer, a local smooth Hard pager with a valid shared-header mask
|
|
38
|
+
fades a bottommost overlay layer using the resolved opaque pager or ancestor
|
|
39
|
+
theme color as the real header collapses, without hard-coded colors or changing
|
|
40
|
+
UIKit's Hard style, owner or interactions. During temporary horizontal owner
|
|
41
|
+
transitions the layer holds its last opacity until geometry is valid again;
|
|
42
|
+
disabling the local overlay, changing style or recycling removes it.
|
|
43
|
+
|
|
44
|
+
For this iOS 27 local smooth Hard direct-pager case, an animated page command
|
|
45
|
+
uses `UIScrollView`'s native content-offset animation; UIKit determines its
|
|
46
|
+
duration. Both page commands and horizontal user drags transfer the source's
|
|
47
|
+
existing top and pinned sticky scroll-edge interactions, markers, hosts and
|
|
48
|
+
saved original style to the transition owner before the source page detaches.
|
|
49
|
+
The interactions remain bound to the source list on their
|
|
50
|
+
original hosts; the borrowed pinned sticky host stays inside the source list
|
|
51
|
+
while the shared controls move. Incoming pages use temporary interactions; a
|
|
52
|
+
drag prepares both adjacent pages so either direction can remain visible.
|
|
53
|
+
Participating pages retain their scroll-edge sampling area during the animation;
|
|
54
|
+
fixed controls still reserve their existing hit-test area. Completion or
|
|
55
|
+
cancellation releases temporary ownership, restores each list's prior style
|
|
56
|
+
and pinned host, and reattaches the settled page's normal owner before a queued
|
|
57
|
+
page command starts. A drag that returns to its source page follows the same
|
|
58
|
+
cleanup path. A new drag invalidates an older pending settlement before it can
|
|
59
|
+
release the new transition's owners.
|
|
60
|
+
If the direct pager viewport width changes while a native animated page command is pending, stop the old-coordinate animation before resizing its viewport. After the normal layout completes, settle the captured logical destination at its new physical offset through the original generation/transition-guarded completion path. This restores scrolling, releases temporary edge ownership and drains queued commands. Any width change, including a fractional-point change, is significant. Zero width completes the logical destination without retaining a disabled pending animation; a later positive-width idle layout realigns the current page. Height-only layout and horizontal user drags retain their existing paths. Late animation-end callbacks must not complete a newer command before its own current target has been reached.
|
|
61
|
+
|
|
62
|
+
Other pager modes retain their prior command and observer ordering. Recycling,
|
|
63
|
+
window detachment, slot replacement and disabling the style also release the
|
|
64
|
+
temporary resources. Conformance requires preserving the source interaction
|
|
65
|
+
and marker identities and prior style until settlement, releasing borrowed
|
|
66
|
+
resources on completion and cancellation, and rendered blur continuity in both
|
|
67
|
+
directions over long scrollable pages.
|
|
28
68
|
|
|
29
69
|
For an iOS 26 pager whose fixed header is rendered by a sibling in the same
|
|
30
70
|
React surface, `externalTopOverlayTag` may identify that header's native view.
|
|
@@ -59,8 +99,10 @@ the shared host before their old scroll-edge interaction is released.
|
|
|
59
99
|
The measured overlay height is excluded from the collapsible header distance:
|
|
60
100
|
`header` remains collapsible and `stickyHeader` pins immediately below the
|
|
61
101
|
overlay. Selection, cancellation, reuse and disposal rebind or release the
|
|
62
|
-
interaction and restore any prior scroll-edge style. Native scroll/refresh
|
|
102
|
+
interaction and restore any prior scroll-edge style. The existing owner-scoped native sticky-height callback also reaches NativeList hosts, so their React container slots clip below the same fixed viewport region and release it when the owner detaches. Native scroll/refresh
|
|
63
103
|
coordination continues on the main thread without per-frame JavaScript work.
|
|
104
|
+
Refresh retains the pager-owned `overlay + header + sticky` top inset but offsets
|
|
105
|
+
the indicator by `header + sticky`, so its spinner begins below the fixed overlay.
|
|
64
106
|
|
|
65
107
|
On iOS before 26, the external tag is not forwarded to native. On iOS before
|
|
66
108
|
26, Android and Web the new props have no scroll-edge effect.
|
|
@@ -73,17 +115,15 @@ Acceptance requires real iOS 26 scrolling, partial collapse, short/empty page,
|
|
|
73
115
|
refresh, page transition/cancellation, dynamic tabs and light/dark checks;
|
|
74
116
|
source and build checks alone do not establish visual correctness.
|
|
75
117
|
|
|
76
|
-
|
|
118
|
+
`CollapsiblePagerView` paints a cover at each owned
|
|
77
119
|
fixed-overlay or pinned-sticky boundary with one physical pixel of the nearest
|
|
78
120
|
opaque ancestor background color (system background if none is available).
|
|
79
121
|
These native layers do not receive touches, change insets, or clip glass shadows.
|
|
80
122
|
They are removed for Soft, disabled/detached effects, and recycling. This is a
|
|
81
|
-
visual workaround using public layer APIs, not a UIKit separator setting
|
|
82
|
-
|
|
123
|
+
visual workaround using public layer APIs, not a UIKit separator setting. While
|
|
124
|
+
the sticky header is pinned, only the top cover is hidden; it reappears on unpin,
|
|
125
|
+
and the sticky cover and both Hard interactions remain active. Standalone
|
|
83
126
|
NativeScroller and NativeList retain UIKit's unmodified Hard appearance.
|
|
84
|
-
On the iOS 26.5 simulator, a runtime probe confirmed Hard and the cover layers,
|
|
85
|
-
including pinned-header ownership. The original hairline was not reliably
|
|
86
|
-
reproduced with the covers hidden, so separator suppression is not yet verified.
|
|
87
127
|
|
|
88
128
|
Style selection crosses Fabric as the enum `none | hard | soft`, defaulting to
|
|
89
129
|
`none`, rather than a hard-effect boolean. Switching Hard ↔ Soft on an attached
|
|
@@ -96,6 +136,83 @@ style forwarding, overlay retention and disabling; UIKit tests cover native
|
|
|
96
136
|
style switching and restoring the previous style. Rendered iOS acceptance must
|
|
97
137
|
be reported separately from type, codegen and build checks.
|
|
98
138
|
|
|
139
|
+
### iOS 27 local incoming transition hosts
|
|
140
|
+
|
|
141
|
+
Status: Implemented; scoped iOS 27 simulator runtime verified.
|
|
142
|
+
|
|
143
|
+
For the existing local smooth Hard direct-pager transition, incoming pages use
|
|
144
|
+
the external path's transparent, noninteractive per-page top/sticky interaction
|
|
145
|
+
hosts. Their horizontal origin follows each page's scroll viewport; vertical
|
|
146
|
+
geometry follows the existing overlay and sticky references. The actual local
|
|
147
|
+
overlay and source interaction/marker/borrowed-host identities remain unchanged.
|
|
148
|
+
No replacement material, background, public API or additional mask is added.
|
|
149
|
+
Existing completion, release-back-to-source, invalidation and recycle paths
|
|
150
|
+
release only owned temporary hosts.
|
|
151
|
+
|
|
152
|
+
Source-matched iOS 27 simulator checks passed for slow movement in both
|
|
153
|
+
directions, same-contact over-half return followed by UP, retained nonzero scroll
|
|
154
|
+
regions, light/dark header protection and actual toolbar sheet opening/closing.
|
|
155
|
+
Selected fixed-label anchors retained their geometry. This is scoped main-UI
|
|
156
|
+
native-view evidence; background runtime readiness and shared JS heaps are not
|
|
157
|
+
assumed. Continuous/rapid alternation remains unproven: the final recording
|
|
158
|
+
shows no discernible alternating page motion despite successful input ACKs.
|
|
159
|
+
True CANCEL, resize/orientation and native lifecycle test execution remain
|
|
160
|
+
unverified. The original physical-device recording's exact OS/build is unknown;
|
|
161
|
+
selected-frame results do not establish exhaustive frame or numeric-offset parity.
|
|
162
|
+
The run retains `normalDevSession=false` and its official launcher failure notice;
|
|
163
|
+
diagnostic compilation and strict-input installation are separate build evidence.
|
|
164
|
+
Market's equal-height secondary display-owner change is an independent consumer
|
|
165
|
+
companion, not a new SDK public guarantee or JS/native same-frame contract.
|
|
166
|
+
|
|
167
|
+
### iOS 27 pinned stand-in transition edges
|
|
168
|
+
|
|
169
|
+
Status: Implemented; iOS 27 simulator runtime verified for Wallet Home Spot ↔ History.
|
|
170
|
+
|
|
171
|
+
While a local smooth Hard pager's sticky header is pinned (`headerOffset >= headerHeight`),
|
|
172
|
+
every page participating in a horizontal transition keeps the Hard material behind the
|
|
173
|
+
fixed overlay and sticky header. An incoming page whose vertical list cannot render that
|
|
174
|
+
material itself — not mounted yet, not in the pager's window, laid out below the bars, or
|
|
175
|
+
resting at its top edge — receives a stand-in: an empty, noninteractive `UIScrollView`
|
|
176
|
+
placed at the page's origin in the container, sized to the overlay + sticky boundary and
|
|
177
|
+
offset past its top edge, with owned transparent top/sticky element hosts bound to it.
|
|
178
|
+
The stand-in draws only UIKit's Hard material; it carries no snapshot of header or page
|
|
179
|
+
content, and the page itself stays masked above the boundary. A page whose own list is
|
|
180
|
+
scrolled past its top and covers the bars keeps using its own temporary interactions.
|
|
181
|
+
When the header is not pinned no stand-in is created and the page keeps the previous
|
|
182
|
+
temporary interaction on its own list. The stand-in and its hosts live in the pager
|
|
183
|
+
container, so every scroll-edge mask update recomputes their frames from the current page
|
|
184
|
+
origin, page width and overlay + sticky boundary; they are hidden while that geometry is
|
|
185
|
+
empty. Release, completion and recycle
|
|
186
|
+
remove the stand-in with its owned hosts.
|
|
187
|
+
|
|
188
|
+
The fixed boundary separator covers stay in place for the whole transition, falling back to
|
|
189
|
+
the shared overlay and sticky hosts while no settled owner exists, so the Hard dividing line
|
|
190
|
+
does not flash between detach and reattach. On completion the settled page's normal owner is
|
|
191
|
+
attached before the previous transition owner's interactions are removed on the next run
|
|
192
|
+
loop. When a drag returns to its source and the source's adopted interaction still targets
|
|
193
|
+
the settled list on the shared overlay host, that interaction becomes the settled owner
|
|
194
|
+
again instead of being replaced, so the source keeps its material after cancellation.
|
|
195
|
+
|
|
196
|
+
Verified on an iOS 27 simulator: repeated half-drag cancellations followed by a full
|
|
197
|
+
Spot → History → Spot swipe, with frame-by-frame checks showing no black band, no hairline
|
|
198
|
+
flash and no header content above the boundary. Perps/DeFi/NFT pages and non-pinned
|
|
199
|
+
horizontal drags were not exercised at runtime.
|
|
200
|
+
|
|
201
|
+
### iOS 27 external-overlay interactive ownership
|
|
202
|
+
|
|
203
|
+
Status: Implemented in iOS source; runtime acceptance is reported separately.
|
|
204
|
+
|
|
205
|
+
For a direct native pager using smooth headers and a Hard top edge, an interactive horizontal drag may preserve scroll-edge ownership when the external overlay is resolved in the same window with a positive effective height. A registered outer pager must own the active page and must not be transitioning; an external overlay without an outer pager remains eligible.
|
|
206
|
+
|
|
207
|
+
Before detaching the source observer, transfer the source's existing top/sticky interactions, markers, original edge style and borrowed pinned host into the transition owner. Do not move or take ownership of the actual external React overlay. Interactive preparation is bounded to the source and its valid immediate neighbours.
|
|
208
|
+
|
|
209
|
+
Each newly prepared external incoming page owns separate transparent, noninteractive top/sticky interaction hosts inside that page. Their horizontal origin follows the page's scroll viewport rather than the fixed external overlay; their vertical positions and heights match the existing top/sticky geometry. Hosts and markers follow page-width changes. They add no replacement material or background. The source retains its existing host identities. Local-overlay ownership and external programmatic page commands keep their existing paths; this extension is selected only by interactive drag preparation.
|
|
210
|
+
|
|
211
|
+
Completion or release back to the source releases temporary interactions and markers, restores the captured original styles, removes only the owned temporary hosts, and reattaches normal ownership to the settled page. Existing cancellation, window removal, slot/recycle and external invalidation paths must release these resources as well. External identity/tag/effective-height changes and outer-owner inactivity or transition invalidate temporary ownership before references are updated. Never remove a borrowed pinned host, shared proxy, shared sticky view or actual external overlay as though it were an owned temporary host.
|
|
212
|
+
|
|
213
|
+
Rendering conformance requires real underlying content on both pages to remain blurred throughout the drag and release, with no premature whiteout, sharp penetration or frozen texture. Object registration and lifecycle tests do not establish visual conformance.
|
|
214
|
+
|
|
215
|
+
|
|
99
216
|
## Smooth shared-header and per-page body memory
|
|
100
217
|
|
|
101
218
|
With nativeSmoothHeaderScrollEnabled, the header collapse C is shared across all
|
|
@@ -142,6 +259,31 @@ behavior. Vertical scrolling, refresh, snapping and repeated-current-tab behavio
|
|
|
142
259
|
are unchanged. This state belongs to native UI instances, with no new React prop
|
|
143
260
|
or per-frame JavaScript synchronization.
|
|
144
261
|
|
|
262
|
+
## Per-page sticky header geometry
|
|
263
|
+
|
|
264
|
+
Status: implemented in source. iOS 26.5 simulator recordings cover Market
|
|
265
|
+
home taps and swipes and stock detail taps, including expanded and collapsed
|
|
266
|
+
headers with empty destinations. Swipe cancellation and filled positions
|
|
267
|
+
remain outside that runtime evidence.
|
|
268
|
+
|
|
269
|
+
On iOS, an optional `stickyHeaderHeights` array supplies the sticky height in
|
|
270
|
+
points for each child, in the same order as the children. The shared
|
|
271
|
+
`stickyHeaderHeight` is the default for any missing or invalid value. The
|
|
272
|
+
JavaScript wrapper sends at most one nonnegative integer per child. Android
|
|
273
|
+
and Web continue to use the shared height.
|
|
274
|
+
|
|
275
|
+
The native pager applies the destination's inset when preparing it for
|
|
276
|
+
display. During a horizontal transition, each page keeps its own inset and
|
|
277
|
+
the shared sticky slot uses the current page's height. Selection switches the
|
|
278
|
+
slot to the destination's height without changing the shared collapse
|
|
279
|
+
distance or the remembered body position. Cancelling a swipe restores the
|
|
280
|
+
source geometry. Updating the height array refreshes owned insets. Recycling
|
|
281
|
+
clears the array along with page identity.
|
|
282
|
+
|
|
283
|
+
Acceptance covers adjacent and distant taps, horizontal swipe completion and
|
|
284
|
+
cancellation, different heights at the top and after collapse, and a return
|
|
285
|
+
to the prior page without vertical drift.
|
|
286
|
+
|
|
145
287
|
## Current-page top commands
|
|
146
288
|
|
|
147
289
|
`scrollToPageTop(options?: Readonly<{ animated?: boolean }>)` restores the current
|
|
@@ -156,6 +298,40 @@ intent. Real vertical consumption, a newer valid command, or owner detachment
|
|
|
156
298
|
releases the target. Existing NativeList and NativeScroller public coordinates
|
|
157
299
|
are unchanged. The same page-top/sticky-top destinations are available without smooth-header mode.
|
|
158
300
|
|
|
301
|
+
On Android, `CollapsiblePagerHost.tryScrollToTop(target, animated)` and
|
|
302
|
+
`isAwayFromPageTop()` are public and kept from minification because
|
|
303
|
+
`react-native-bottom-tabs` calls them by name on a tab double press, as neither
|
|
304
|
+
package depends on the other. `tryScrollToTop` returns true only after the
|
|
305
|
+
existing page-top command accepts a stable, attached current owner; invalid
|
|
306
|
+
targets, horizontal transitions, restoration and missing/stale owners return
|
|
307
|
+
false without queueing a command. Acceptance does not mean animation completion.
|
|
308
|
+
`isAwayFromPageTop` is true while the header offset is above zero, whatever the
|
|
309
|
+
body offset. iOS exposes the same `tryScrollToTop:animated:` Boolean result and
|
|
310
|
+
`isAwayFromPageTop` selector. Renaming either breaks that caller silently.
|
|
311
|
+
The existing Fabric `scrollToTop` command remains void on both platforms and
|
|
312
|
+
uses the same acceptance path; JavaScript commands and public refs are unchanged.
|
|
313
|
+
BottomTabs and Pager native sources must ship together for this entry point.
|
|
314
|
+
The acceptance-returning entry point is implemented in source; runtime
|
|
315
|
+
acceptance during horizontal transitions and owner loss remains pending.
|
|
316
|
+
|
|
317
|
+
## Current-page partial header command
|
|
318
|
+
|
|
319
|
+
`scrollHeaderBy(delta: number)` moves the current page's shared collapsible
|
|
320
|
+
header from its displayed offset C to `clamp(C + delta, 0, D)`.
|
|
321
|
+
`scrollHeaderToOffset(offset: number)` moves it to `clamp(offset, 0, D)`
|
|
322
|
+
regardless of intervening native keyboard or user scrolling. D is the latest
|
|
323
|
+
measured collapsible height. Inputs use logical points on iOS and Android and
|
|
324
|
+
CSS pixels on Web. Non-finite values are ignored. The header and current body move immediately
|
|
325
|
+
so a focused input becomes visible before the next keyboard frame. A valid command
|
|
326
|
+
clears only the current page's body reading position B; it never changes
|
|
327
|
+
another page's memory or adds permanent content/insets. It requires the same
|
|
328
|
+
stable attached current owner as the page-top commands and is a safe no-op
|
|
329
|
+
during horizontal transitions, before mount, or after disposal. A newer
|
|
330
|
+
command or real user vertical consumption takes ownership from an older one.
|
|
331
|
+
Dynamic header measurements clamp any in-flight target to the latest D.
|
|
332
|
+
This command allows a focused input inside the shared header to move above a
|
|
333
|
+
keyboard without replacing the pager's sole vertical scroll owner.
|
|
334
|
+
|
|
159
335
|
## Independent NativeScroller migration
|
|
160
336
|
|
|
161
337
|
Status: implemented in source. Both native builds pass. Android focused emulator
|
|
@@ -318,6 +494,43 @@ warnings were observed. Keyboard, multi-touch, physical-device performance and
|
|
|
318
494
|
the full lifecycle/interaction matrix remain unverified. These are local source
|
|
319
495
|
builds; the currently installed npm version does not yet contain this migration.
|
|
320
496
|
|
|
497
|
+
## Android removal-transition geometry retention
|
|
498
|
+
|
|
499
|
+
Status: implemented locally; unreleased. On the Android UI thread, during a
|
|
500
|
+
screen removal transition,
|
|
501
|
+
NativeList and CollapsiblePager layout entry points respect the RecyclerView
|
|
502
|
+
suppression state established by the screen-transition owner. The owner restores
|
|
503
|
+
the original state when its last transition ownership ends. In addition,
|
|
504
|
+
`CollapsiblePagerHost` disables `DefaultItemAnimator` on its internal
|
|
505
|
+
`ViewPager2` `RecyclerView` (`itemAnimator = null`) and skips pre-draw
|
|
506
|
+
(`layoutPagerIfRequested`) and host-driven `ViewPager2` layout passes when all
|
|
507
|
+
React page children have been removed from the adapter (`adapter.itemCount == 0`)
|
|
508
|
+
while previously rendered page `ViewHolder` views remain attached
|
|
509
|
+
(`attachedPageCount() > 0`), matching `PagerViewViewManagerImpl`'s unmount
|
|
510
|
+
guard. Initial empty measurement before any page is attached
|
|
511
|
+
(`attachedPageCount() == 0`) and subsequent page insertions (`adapter.itemCount > 0`)
|
|
512
|
+
still measure and lay out normally. This prevents unmount-time empty-adapter
|
|
513
|
+
layout passes from clearing visible exit frames or recycling attached
|
|
514
|
+
`ViewHolder` views held in `mDisappearingChildren` by `ViewGroup.startViewTransition`.
|
|
515
|
+
This adds no public API and does not change Web or iOS behavior.
|
|
516
|
+
|
|
517
|
+
If Fabric removes the current NativeScroller React child while its origin-frame
|
|
518
|
+
transition remains active, Android retains the already displayed native extent
|
|
519
|
+
for drawing. The current child and raw content dimensions still clear normally;
|
|
520
|
+
only native content measurement and layout use the retained effective extent.
|
|
521
|
+
The matching transition end or detach clears the private child and extent state
|
|
522
|
+
idempotently. Adding a new child cancels prior retention, and a late end for the
|
|
523
|
+
old child cannot alter the new content. Ordinary removal, size events and scroll
|
|
524
|
+
commands keep their existing semantics.
|
|
525
|
+
|
|
526
|
+
Local arm64 DevShell acceptance covered Base, CXO and Overview exit content,
|
|
527
|
+
normal scrolling, RecyclerView ownership and suppression cleanup for the
|
|
528
|
+
observed CXO exit, and NativeScroller raw-zero content dimensions with a
|
|
529
|
+
nonzero displayed origin followed by detach cleanup. Nested-owner and cancel
|
|
530
|
+
paths, Overview rebound/cancel, natural resize and new-child runtime cases,
|
|
531
|
+
and the full performance matrix remain unverified. SDK publication and
|
|
532
|
+
consumer version alignment are separate steps.
|
|
533
|
+
|
|
321
534
|
## iOS vertical-scroll press cancellation
|
|
322
535
|
|
|
323
536
|
Status: implemented in source. A source-identical `node_modules` build was
|
|
@@ -363,7 +576,11 @@ content, the shared header, and touches beginning on an inner horizontal banner.
|
|
|
363
576
|
Normal taps MUST remain functional. Press-retention behavior in application
|
|
364
577
|
controls belongs to the consuming responder implementation; the Pager package
|
|
365
578
|
does not contain or publish Tamagui helpers. The native application tab bar has
|
|
366
|
-
a separate contract in react-native-
|
|
579
|
+
a separate contract in react-native-bottom-tabs/docs/SPEC.md.
|
|
580
|
+
|
|
581
|
+
On Android, smooth-touch coordination and nested interception share the same
|
|
582
|
+
native-gesture state. Once either path starts the gesture, later MOVE events
|
|
583
|
+
MUST NOT start it again before its end or cancellation clears that state.
|
|
367
584
|
|
|
368
585
|
The current native implementation confirms horizontal intent after at least
|
|
369
586
|
32 points on iOS or 32 dp on Android, with horizontal displacement exceeding
|
|
@@ -437,6 +654,40 @@ The attached UIKit regression intentionally constrains the real pager pan to two
|
|
|
437
654
|
required touches to prove the no-pan path; it is distinct from natural Home OS
|
|
438
655
|
input, coalesced-event delivery, and physical-device acceptance.
|
|
439
656
|
|
|
657
|
+
## Native segmented tab bar
|
|
658
|
+
|
|
659
|
+
Status: implemented locally. Focused production-class iOS XCTest and Android
|
|
660
|
+
instrumentation checks pass; consuming App interaction acceptance is separate.
|
|
661
|
+
`nativeTabBar.style.variant` retains `"underline"` (the default) and
|
|
662
|
+
`"segmented"` on iOS and Android; the text variant is specified below. The optional
|
|
663
|
+
`nativeTabBar.style.contentPaddingVertical` is a nonnegative logical inset,
|
|
664
|
+
defaulting to zero. Omitting both fields preserves the existing content-width,
|
|
665
|
+
horizontally scrollable underline bar. Web ignores legacy `nativeTabBar` configurations and retains
|
|
666
|
+
its caller-rendered sticky header.
|
|
667
|
+
|
|
668
|
+
In segmented mode, the existing `height` is the entire tab slot. The track
|
|
669
|
+
fills the space inside `contentPaddingHorizontal` and
|
|
670
|
+
`contentPaddingVertical`, uses `backgroundColor`, and has a fully rounded
|
|
671
|
+
outline. Its visible items divide the track into equal-width segments in their
|
|
672
|
+
current order, including after item insertion, removal, relabeling, or resize.
|
|
673
|
+
The thumb uses `indicatorColor`, is inset two logical points from its segment,
|
|
674
|
+
and is fully rounded. Segment titles use the existing font and active/inactive
|
|
675
|
+
text colors, remain single-line with truncation, and retain their existing
|
|
676
|
+
accessibility labels, test IDs, and native press event keys. The segmented bar
|
|
677
|
+
does not scroll horizontally; `itemSpacing`, `indicatorHeight`, and
|
|
678
|
+
`indicatorBottom` apply only to underline mode. The pager's native fractional
|
|
679
|
+
page progress moves the thumb continuously between equal-width segments and
|
|
680
|
+
interpolates text emphasis without per-frame JavaScript updates. It settles at
|
|
681
|
+
the actual selected page after a completed or cancelled gesture. RTL reverses
|
|
682
|
+
physical segment order without changing logical page keys or indices.
|
|
683
|
+
|
|
684
|
+
Switching variants or removing the native tab bar clears the previous visual
|
|
685
|
+
state. The existing native press command, page callbacks, retention, vertical
|
|
686
|
+
header geometry, and Web behavior remain unchanged. Acceptance requires
|
|
687
|
+
focused native geometry/progress/press checks on iOS and Android, including
|
|
688
|
+
two or three segments, dynamic labels/items, RTL, narrow widths, and variant
|
|
689
|
+
switching. Type forwarding alone does not prove rendered behavior.
|
|
690
|
+
|
|
440
691
|
## Native tab-press animation default
|
|
441
692
|
|
|
442
693
|
Behavior change: previously an omitted `nativeTabPressAnimationEnabled` animated
|
|
@@ -457,6 +708,28 @@ Status: implemented; focused native-wrapper tests cover both directions,
|
|
|
457
708
|
explicit overrides and in-flight/superseded command targets. Home applies this policy to its JS tab bar, with iOS and
|
|
458
709
|
Android simulator recordings verifying distant jumps and adjacent transitions.
|
|
459
710
|
|
|
711
|
+
## Native tab trailing control reservation
|
|
712
|
+
|
|
713
|
+
Status: implemented locally, unreleased. The focused Android host test passed
|
|
714
|
+
(1/1); iOS hit tests had 8 passes and 1 existing skip. iOS companion-app UI
|
|
715
|
+
acceptance remains unverified.
|
|
716
|
+
`nativeTabBar.style.trailingReservedWidth` is an optional logical trailing
|
|
717
|
+
reservation for a sibling React control in the full-width sticky header. It
|
|
718
|
+
defaults to zero. JavaScript normalizes non-finite or negative input to zero;
|
|
719
|
+
native also clamps the reservation to the actual tab viewport width. On Android
|
|
720
|
+
and iOS, only the native tab viewport shrinks from `W` to `W - R`: its frame
|
|
721
|
+
begins at zero in LTR and at `R` in RTL. The sticky React header, its height,
|
|
722
|
+
and page content keep their original full-width geometry. Touches in the
|
|
723
|
+
reserved region reach the sibling control, while native tab hit testing and
|
|
724
|
+
last-tab visibility use the reduced viewport. Changing the reservation updates
|
|
725
|
+
that viewport; removing it or recycling the pager restores the default zero.
|
|
726
|
+
Web does not render the native tab and ignores this style field. For a positive
|
|
727
|
+
reservation, the box-none sticky React control draws above the native tab so
|
|
728
|
+
its inward fade and toolbar hit area remain visible; zero preserves the old
|
|
729
|
+
native-tab foreground order. Acceptance requires focused native layout and hit
|
|
730
|
+
testing for zero, nonzero, reset, and RTL reservations; type forwarding alone
|
|
731
|
+
is insufficient.
|
|
732
|
+
|
|
460
733
|
## Android refresh foreground coordination
|
|
461
734
|
|
|
462
735
|
Status: implemented; Android Home simulator placement verified on 2026-09-28.
|
|
@@ -802,6 +1075,64 @@ fallback debounce, including replacement-state restoration. Other collection
|
|
|
802
1075
|
fallbacks keep that safety delay. Caller insets and retained logical offsets
|
|
803
1076
|
remain governed by the existing restoration policy.
|
|
804
1077
|
|
|
1078
|
+
A verified, mounted NativeList with usable vertical bounds is a scroll-owner
|
|
1079
|
+
boundary. Its React container slots may contain independent Fabric scroll views,
|
|
1080
|
+
NativeScroller views or nested pagers; those descendants MUST NOT replace that
|
|
1081
|
+
NativeList as the enclosing page's owner or receive its shared header. Candidate
|
|
1082
|
+
priority between sibling page owners remains unchanged, including an explicit
|
|
1083
|
+
NativeScroller sibling. Pages without an enclosing NativeList retain nested-pager
|
|
1084
|
+
active-owner delegation. This boundary does not change scroll offsets, insets,
|
|
1085
|
+
shared-header collapse or per-page body memory.
|
|
1086
|
+
|
|
1087
|
+
Status: implemented and verified by production-native UIKit regressions on
|
|
1088
|
+
iOS 27.1 for footer insertion, explicit-sibling priority and nested-pager
|
|
1089
|
+
delegation. Full App and physical-device visual acceptance are reported separately.
|
|
1090
|
+
|
|
1091
|
+
When the active scroll owner is removed before its replacement becomes usable,
|
|
1092
|
+
the pager MUST retain bounded recovery (at most 12 retries per recovery round,
|
|
1093
|
+
spaced 100 ms apart). Clearing the completed mount's reattachment flag MUST NOT
|
|
1094
|
+
cancel that recovery. A replacement that becomes usable during that round,
|
|
1095
|
+
without another Fabric insertion, MUST receive the observer, shared headers,
|
|
1096
|
+
insets and retained collapse state. Page selection changes and recycling
|
|
1097
|
+
invalidate stale retry callbacks. Repeated mount attempts MUST NOT reset the
|
|
1098
|
+
retry budget. Once all 12 retries have been scheduled, an Insert whose parent is
|
|
1099
|
+
in the current page subtree MUST reopen recovery if that page retains a released
|
|
1100
|
+
scroll owner, including when the final retry callback is still pending. Reopening
|
|
1101
|
+
invalidates the old callback before clearing its scheduled state. The Insert
|
|
1102
|
+
MUST be recorded during a horizontal drag or transition, while observer and shared
|
|
1103
|
+
header attachment remain deferred until selection settles. Cancelling the drag
|
|
1104
|
+
on the same page MUST retain the reopened recovery round. Empty transactions,
|
|
1105
|
+
removals and inserts outside the current page MUST NOT reopen the budget. Owned
|
|
1106
|
+
`NativeScroller` and `NativeList` hosts additionally emit push readiness
|
|
1107
|
+
notifications when their scroll views attach and obtain positive bounds so late
|
|
1108
|
+
replacements recover immediately even without another Fabric insertion or after
|
|
1109
|
+
the retry budget expires; static pages with neither an unready scroll host nor a
|
|
1110
|
+
released scroll owner do not schedule retry timers.
|
|
1111
|
+
|
|
1112
|
+
Status of transition-time and pending-final-retry recovery: implemented and
|
|
1113
|
+
UIKit regression verified on iOS 26.5 (2026-10-27). Both new regressions fail
|
|
1114
|
+
before the fix and pass afterward. Cancellation settles on the source page
|
|
1115
|
+
before the replacement becomes usable; the pending-final-retry case makes the
|
|
1116
|
+
replacement usable after the old timer's deadline. Observer and shared header
|
|
1117
|
+
ownership stay detached during the drag, then recover with the retained collapse.
|
|
1118
|
+
The full Pager suite executes 85 tests, with one iOS-27-only skip and no failures.
|
|
1119
|
+
|
|
1120
|
+
Status of exhausted-budget recovery: implemented and UIKit regression verified
|
|
1121
|
+
on iOS 26.5 (2026-10-27). The regression exhausts the initial round, checks that
|
|
1122
|
+
empty transactions, removals and offscreen inserts do not reopen it, then inserts
|
|
1123
|
+
a current-page replacement whose scroller appears after did-mount. It fails
|
|
1124
|
+
before the fix and passes afterward, including preservation of an active round
|
|
1125
|
+
and restoration of the observer, shared headers and retained collapse. The full
|
|
1126
|
+
Pager suite executes 83 tests, with one iOS-27-only skip and no failures.
|
|
1127
|
+
|
|
1128
|
+
Status of replacement recovery: implemented and runtime verified on iOS 26.5
|
|
1129
|
+
(2026-10-23). The late-replacement UIKit regression fails before the fix and
|
|
1130
|
+
passes afterward; the full Pager suite executes 82 tests, with one iOS-27-only
|
|
1131
|
+
skip and no failures. In the consuming app based on x at b0789571d8 with SDK
|
|
1132
|
+
6.7.0-9 and this local native change, two empty Favorites-to-Wallet-add-to-Market
|
|
1133
|
+
cycles and a Trending/Favorites round trip keep the first row aligned with the
|
|
1134
|
+
sticky header. The previously observed 212-point gap is absent.
|
|
1135
|
+
|
|
805
1136
|
This is a UI-thread, main-runtime native coordination change with no new props,
|
|
806
1137
|
events, background-runtime work, persistence or retained strong view cache.
|
|
807
1138
|
Android already prepares discovered scroll children before draw and is unchanged;
|
|
@@ -887,3 +1218,362 @@ On active-to-inactive transition, the Web pager freezes the selected logical Rea
|
|
|
887
1218
|
Valid vertical wheel, scroll keys, scrollbar drag, overlay-forwarded input, accepted NativeList commands, and explicit page-top/sticky-top commands cancel pending route intent through the existing SDK takeover path. As in the prior Web app adapter, any owner `pointerdown` or `touchstart`, including a child target, cancels only route pending; this does not newly commit or clear SDK C+B memory. Geometry-only scroll/resize/scrollend cannot cancel intent. Valid same-offset commands cancel it; invalid or stale commands do not. A matching route target takes priority over automatic tab C+B restoration. Selection of a different key, owner identity reset (including A→B→A), genuine DOM owner replacement, or removal cancels pending; a same-key index reorder preserves it. A same-commit blur and Activity/Offscreen effect disconnect captures the current route target before releasing the owner; repeated disconnects preserve an existing pending target. A temporary React ref null or Activity/Offscreen effect disconnect followed by the identical connected owner preserves the logical route target and owner generation while releasing all observers, listeners, frames, and DOM configuration during disconnect. Restoration is unavailable while disconnected; reconnect remeasures automatic chrome before applying pending. A truly removed pager instance cannot transfer its pending target to a new instance. Older queued tab/top callbacks must validate generation before writing after route restoration or cancellation. The app owns navigation focus and business tab names; the SDK never infers them from escaped React child keys.
|
|
888
1219
|
|
|
889
1220
|
Platform matrix: Web owns this DOM geometry, registration, route pending, and explicit Web export. iOS and Android keep native scrolling, restoration, and page coordination documented above, with no new prop, native bridge call, JS heap sharing, or process resource. The UI main runtime owns Web state; background runtimes do not deserialize it. Source/type tests establish only Web contract implementation, not browser rendering or native device behavior. Acceptance requires real Web/Desktop route blur, short content then growth, user takeover, dynamic chrome, key reset, and Home/Market scroll regressions.
|
|
1221
|
+
|
|
1222
|
+
## Native package entry isolation
|
|
1223
|
+
|
|
1224
|
+
The Native package entry exports the existing Native PagerView,
|
|
1225
|
+
CollapsiblePagerView, NativeScroller, usePagerView and ScrollEdgeEffect APIs.
|
|
1226
|
+
Native package resolution MUST NOT evaluate the Web pager or Web page-context
|
|
1227
|
+
modules. The react-native field and conditional export resolve to a real Native
|
|
1228
|
+
entry; the browser entry retains the Web runtime APIs. The generic declaration
|
|
1229
|
+
entry preserves the existing shared Web value/type API for TypeScript callers.
|
|
1230
|
+
This separates package initialization in the Native UI main runtime; it does not
|
|
1231
|
+
add a bridge, share JS heaps with background, or change Native scroll commands.
|
|
1232
|
+
Acceptance includes the actual Native dependency graph and unchanged startup
|
|
1233
|
+
budgets, Web runtime/type exports, and package source/module/declaration entries.
|
|
1234
|
+
|
|
1235
|
+
## Text tabs, controlled selection and per-tab toolbar
|
|
1236
|
+
|
|
1237
|
+
Physical font-owner revision: Implemented from source-matched consumer candidates
|
|
1238
|
+
and independently accepted for the scoped three-platform checks: iOS `e6dab83e`,
|
|
1239
|
+
Android Header `c7fdbb4d` and Web `c75c725c`. Native compiled objects/classes,
|
|
1240
|
+
archives/APKs and installed binaries are matched separately from runtime evidence.
|
|
1241
|
+
iOS original-resolution bidirectional slow motion pairs body displacement with
|
|
1242
|
+
normalized same-label glyph references across halfway, and actual adjacent and
|
|
1243
|
+
nonadjacent clicks were reviewed. Supplemental same-contact out-and-back followed
|
|
1244
|
+
by UP also passed on the same task device/source: one native path contains 244
|
|
1245
|
+
events (1 DOWN, 242 MOVE, 1 UP). Selected-frame analysis of the 442-frame original
|
|
1246
|
+
recording independently pairs body displacement with normalized glyphs across the outgoing and returning
|
|
1247
|
+
halfway crossings, closing the out-and-back/UP evidence gap. An injected CANCEL
|
|
1248
|
+
event remains untested. Image-derived progress has plus/minus two-physical-pixel
|
|
1249
|
+
uncertainty; exact midpoint paint time is not claimed. Its authorized lower-level
|
|
1250
|
+
runtime remains `normalDevSession=false` with the existing DeviceHub GUI limitation.
|
|
1251
|
+
|
|
1252
|
+
Android actual slow and reverse motion, clicks and same-contact out-and-back
|
|
1253
|
+
input were reviewed with glyph/body evidence. The boundary estimate has a
|
|
1254
|
+
plus/minus two-physical-pixel uncertainty; the cancel input settled on Perps, so
|
|
1255
|
+
it is not evidence that cancellation returned to the source page. Web reviewed
|
|
1256
|
+
actual release-time CSS motion, normalized glyph ownership and stable neighboring
|
|
1257
|
+
tab geometry. Its existing touch path still moves the body after release. These
|
|
1258
|
+
are scoped runtime passes, not full gesture, typography or accessibility coverage.
|
|
1259
|
+
Two mounted DOM regressions exercise the physical-owner/semantic distinction and
|
|
1260
|
+
inherited-family/mode cleanup; they do not replace browser/native pixel evidence.
|
|
1261
|
+
|
|
1262
|
+
Prior interaction revision evidence (retained for unchanged paths): Implemented
|
|
1263
|
+
and synchronized from the source-matched consumer prototype. Targeted independent
|
|
1264
|
+
runtime acceptance passed for Web (`f22adedb`),
|
|
1265
|
+
iOS (`14ac191c`) and Android (Header `bafa2c02`, Host `f80156f7`). The consumer
|
|
1266
|
+
records are `web-settled-review.json`, `ios-14ac-review.json` and
|
|
1267
|
+
`android-bafa-review.json`; the unchanged Android Host/component/history evidence
|
|
1268
|
+
is retained separately in `android-f801-review.json`.
|
|
1269
|
+
|
|
1270
|
+
Web exercised different/same SVG handoff, approximately 100 ms presence, pointer
|
|
1271
|
+
cancellation/late UP, keyboard activation, resize/reattach and real Home menus.
|
|
1272
|
+
iOS exercised fresh History-to-Spot settlement, route/owner return, different/same
|
|
1273
|
+
SVG and no-entry Gallery controls, continuous actual-motion label colors, and a
|
|
1274
|
+
50-to-100 History append with exact key/image prefix. Android's final background
|
|
1275
|
+
build measured zero leaked badge pixels over 142 with-entry frames and a clean
|
|
1276
|
+
slot over 84 no-entry frames, plus real pressed feedback and route/owner menus.
|
|
1277
|
+
Its unchanged Host build separately exercised Gallery return, owner changes,
|
|
1278
|
+
50-to-100 History append and retained viewport/key-image prefix.
|
|
1279
|
+
|
|
1280
|
+
These are main-UI/native-view checks; background initializes independently and no
|
|
1281
|
+
shared JS heap/readiness is assumed. iOS verification used the authorized
|
|
1282
|
+
lower-level launch with `normalDevSession=false`. Its unchanged vendor/session
|
|
1283
|
+
payload followed an earlier OCI manifest HTTP 404 local-build fallback, so this
|
|
1284
|
+
is not normal-launcher or clean cache-hit evidence. Existing debugger/Purchases
|
|
1285
|
+
and Gallery warnings remain; no console-clean claim is made.
|
|
1286
|
+
|
|
1287
|
+
Native exact slow-drag/cancel and sub-150 ms tap storms, physical hover, complete
|
|
1288
|
+
RTL/extreme-font coverage, live custom-RGBA composition and exact append commit
|
|
1289
|
+
frame stability were not established by the final targeted builds. Earlier
|
|
1290
|
+
component evidence remains scoped to unchanged paths, never relabeled as new
|
|
1291
|
+
binary footage. Source/type/method-double checks and new native test drafts are
|
|
1292
|
+
separate from runtime evidence; the new native host/Bitmap test additions have
|
|
1293
|
+
not yet executed in the SDK host.
|
|
1294
|
+
|
|
1295
|
+
Earlier revision validation (retained baseline; not proof of the revision below):
|
|
1296
|
+
Validation scope: Web exercised real content switching, toolbar menus and selected
|
|
1297
|
+
feedback, drag cancellation, keyboard activation, sticky headers, localized narrow
|
|
1298
|
+
labels, dark mode and the unchanged wide layout. iOS exercised real page contents,
|
|
1299
|
+
medium/semibold labels and descenders, named SVG controls, 38-point button frames,
|
|
1300
|
+
press/drag cancellation, filter menus, LP selected-background restoration and sticky
|
|
1301
|
+
navigation. Android exercised real page contents, toolbar controls, native press
|
|
1302
|
+
and drag cancellation, LP selected-background restoration and sticky scrolling.
|
|
1303
|
+
|
|
1304
|
+
Rich-data Home checks on all three targets expanded the token list from 6 to 50
|
|
1305
|
+
items, loaded 785 NFT items, and reached 150 unique History entries through two
|
|
1306
|
+
successive page appends. History checks included the companion consumer
|
|
1307
|
+
content-generation update. Native append recordings showed no return to the
|
|
1308
|
+
initial list top, and 10-fps samples showed no whole-column icon clearing.
|
|
1309
|
+
Pixel-exact anchor stability and zero individual-image flicker were not measured.
|
|
1310
|
+
|
|
1311
|
+
VoiceOver/TalkBack speech and native hover were not exercised. An iOS Spot
|
|
1312
|
+
accessibility-tree snapshot failure also occurs with the original Home JS tab
|
|
1313
|
+
bar in the same binary; History snapshots succeed. This comparison does not
|
|
1314
|
+
establish a full native baseline or resolve the separate accessibility issue.
|
|
1315
|
+
|
|
1316
|
+
The existing `nativeTabBar` additionally accepts the `text` style variant. It
|
|
1317
|
+
uses scrollable, intrinsic-width labels, no indicator or track, and full-height
|
|
1318
|
+
hit areas with sufficient font ascent/descent space. Text labels use 18-point medium by default, with semibold text for the visual
|
|
1319
|
+
font owner defined below; consumers supply fontSize, fontFamily and
|
|
1320
|
+
activeFontFamily for their bundled brand faces. Native width reserves the larger
|
|
1321
|
+
medium/semibold label. Controlled Web text buttons use a private overlapping grid
|
|
1322
|
+
with one visible label and two hidden normal/active face reservations, so a font
|
|
1323
|
+
handoff does not resize the button or move its neighboring tabs. Hidden copies
|
|
1324
|
+
are AX-hidden, noninteractive and unselectable; there remains one named button
|
|
1325
|
+
and one visible label. The normal face keeps its inherited family when
|
|
1326
|
+
fontFamily is omitted, and the active face falls back to that normal family.
|
|
1327
|
+
On native text tabs, an omitted or empty `activeFontFamily` derives the active
|
|
1328
|
+
semibold weight (600, or Android legacy bold) from the resolved normal face,
|
|
1329
|
+
using the nearest available family weight on iOS.
|
|
1330
|
+
A nonempty explicit active face takes precedence and retains its named weight;
|
|
1331
|
+
an unavailable explicit iOS face retains the existing system-semibold fallback.
|
|
1332
|
+
Invalid normal iOS faces resolve to system medium before deriving active weight;
|
|
1333
|
+
Android family resolution retains ReactFontManager fallback behavior. Native
|
|
1334
|
+
measurement and rendering use the same resolved active face. On iOS text bars,
|
|
1335
|
+
the parent paints the full row background once and the inner scroll view is
|
|
1336
|
+
transparent, including fractional-alpha colors and the fixed toolbar slot.
|
|
1337
|
+
Other modes retain their existing structure and behavior. Existing underline and
|
|
1338
|
+
segmented defaults remain unchanged.
|
|
1339
|
+
|
|
1340
|
+
`nativeTabBar.controlled` defaults to false. When true, a tab press emits its
|
|
1341
|
+
stable item key without issuing a pager command. `selectedKey` identifies the
|
|
1342
|
+
selected item independently of its visual index. Consumers own business routing
|
|
1343
|
+
and call the existing pager commands when appropriate. With unique item/page
|
|
1344
|
+
keys and every page matched, label colors follow actual pager progress, including
|
|
1345
|
+
integer samples. Only the two page endpoints interpolate; extra non-page items
|
|
1346
|
+
receive no transition emphasis. Config echoes and semantic selection callbacks
|
|
1347
|
+
MUST NOT replace this actual progress with the target endpoint. Semantic selection,
|
|
1348
|
+
including selectedKey, aria-selected/native selected traits and press callbacks,
|
|
1349
|
+
continues to follow the existing controlled contract. Toolbar snapshot ownership,
|
|
1350
|
+
activation and settlement are unchanged.
|
|
1351
|
+
|
|
1352
|
+
For valid controlled text tabs with an actual progress sample, only the visual
|
|
1353
|
+
font owner follows the physical page: clamp raw page progress to the page range,
|
|
1354
|
+
choose its source page below fraction 0.5 and its destination at or above 0.5,
|
|
1355
|
+
then map that page key to its item. At 0.49 the source uses the active face; at
|
|
1356
|
+
0.50 and 0.51 the destination does. Reversing actual progress uses the same rule.
|
|
1357
|
+
Do not round interpolated item coordinates: an extra non-page item between the
|
|
1358
|
+
two endpoints must never become the transition font owner. Both font weight and
|
|
1359
|
+
normal/active font family use this owner, including native remeasurement and Web
|
|
1360
|
+
render/RAF synchronization. Config or semantic echoes do not move the font owner
|
|
1361
|
+
ahead of physical progress. Missing/invalid mappings, selected non-page items,
|
|
1362
|
+
no actual sample, uncontrolled and non-text modes retain their existing semantic
|
|
1363
|
+
or automatic fallback; stale valid mapping state must not survive a newly invalid
|
|
1364
|
+
configuration. Label color interpolation is unchanged.
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
`nativeTabBar.toolbar` is one JSON-compatible dictionary indexed by stable tab
|
|
1368
|
+
key. Each entry describes one `iconName` from the existing OneKeyImage named-SVG
|
|
1369
|
+
pipeline, `selected`, `accessibilityLabel` and `testID`. Omitting `toolbar`
|
|
1370
|
+
reserves zero width. Explicit `toolbar: {}` reserves 44 logical units. A nonempty
|
|
1371
|
+
map reserves the largest resolved `contentWidth + trailingInset` across all its
|
|
1372
|
+
entries, independent of the displayed owner. A missing selected entry has no
|
|
1373
|
+
button, hit target or accessibility element while this fixed slot remains. Each toolbar entry accepts `iconColor`, `selectedBackgroundColor`, `hoverBackgroundColor` and `pressedBackgroundColor` as resolved CSS strings. `size`, `iconSize`, `contentWidth` and `trailingInset` are logical dimensions supplied by the consumer (defaults 38, 24, 24 and 20). The circular frame includes the icon and border; layout reservation is contentWidth plus trailingInset, preserving the consumer's negative-margin layout. The SDK does not infer application scale rules.
|
|
1374
|
+
At the native JSON boundary, finite `size` is clamped to 1..128,
|
|
1375
|
+
`iconSize` to 1..size, `contentWidth` to 0..size, and `trailingInset` to
|
|
1376
|
+
0..128. Missing, null, nonnumeric or nonfinite dimensions use the defaults
|
|
1377
|
+
above (iconSize/contentWidth defaults are additionally capped by size).
|
|
1378
|
+
Consumers supply finite dimensions on Web; finite bounds and missing/null
|
|
1379
|
+
defaults apply there, while direct NaN/Infinity values are unsupported CSS
|
|
1380
|
+
inputs. Colors are normalized at the native wrapper boundary: iconColor uses
|
|
1381
|
+
OneKeyImage's rgba representation and native background colors use ARGB.
|
|
1382
|
+
This does not add a second toolbar configuration or a JavaScript feedback loop. Default background is transparent;
|
|
1383
|
+
selected background remains the base color after hover, press or cancellation.
|
|
1384
|
+
Omitted hover and pressed colors inherit that resolved base on every platform;
|
|
1385
|
+
explicit colors, including transparent, override it.
|
|
1386
|
+
iOS UIKit and Android drawable state own feedback without JavaScript roundtrips
|
|
1387
|
+
or default Android ripples. No menus or business capability checks live here.
|
|
1388
|
+
|
|
1389
|
+
`onNativeToolbarPress` reports the stable `key` of the displayed control and
|
|
1390
|
+
`anchorRect` (`x`, `y`, `width`, `height`) in window/viewport logical coordinates.
|
|
1391
|
+
It never changes pager selection. Invalid, stale or removed controls emit
|
|
1392
|
+
nothing. The controlled toolbar has a private committed presentation snapshot:
|
|
1393
|
+
owner key, image, dimensions, label/test identifier, colors and selected base.
|
|
1394
|
+
During a gesture, programmatic/queued transition or detach, the old whole visual
|
|
1395
|
+
remains, with hit testing and accessibility disabled and active input invalidated.
|
|
1396
|
+
A config-selected target before the page command cannot transfer this snapshot.
|
|
1397
|
+
|
|
1398
|
+
With a valid page mapping, commit requires genuine physical settlement and a
|
|
1399
|
+
physical page key matching the latest `selectedKey`. A late business echo delays
|
|
1400
|
+
enablement; it never changes business selection. Cancellation restores the old
|
|
1401
|
+
owner, rapid commands submit only the final stable owner, and idle same-owner
|
|
1402
|
+
LP/config updates apply once ready. Non-page/invalid mapping uses semantic fallback
|
|
1403
|
+
at genuine idle. Automatic/legacy modes retain their existing timing; changing
|
|
1404
|
+
modes cancels requests/ready owners and restores the destination mode's hit/AX state.
|
|
1405
|
+
|
|
1406
|
+
Presence changes alone fade for approximately 100 ms from current presentation
|
|
1407
|
+
opacity. Two present entries never fade the whole button out: identical rendering
|
|
1408
|
+
inputs reuse artwork across distinct action owners; different ready artwork
|
|
1409
|
+
replaces in place once, without crossfade or fade-through. Pending artwork may
|
|
1410
|
+
retain the old snapshot only as disabled, AX-hidden decoration. Ready callbacks
|
|
1411
|
+
recheck owner, attachment and physical settlement before atomically changing the
|
|
1412
|
+
whole entry. Missing/failed artwork hides content without removing the fixed slot.
|
|
1413
|
+
|
|
1414
|
+
The existing named-SVG identity includes name, color, scale and raster geometry;
|
|
1415
|
+
it is separate from the owner key. Replacement/detach cancels pending and ready
|
|
1416
|
+
owners; stale callbacks cannot paint or enable. One loaded image, at most one
|
|
1417
|
+
pending/ready target and one failed identity are retained per toolbar view; this
|
|
1418
|
+
does not replace the image package's existing resource cache. Repeated config or
|
|
1419
|
+
frame updates do not retry a failed identity. Returning to it still cancels a
|
|
1420
|
+
different pending target and hides old content; matching loaded artwork wins over
|
|
1421
|
+
failure memory. Android clears failed identity on detach; iOS retains it across
|
|
1422
|
+
transient header reparenting, and Web clears it on disposal.
|
|
1423
|
+
|
|
1424
|
+
A pointer origin is invalidated on suspension/owner transfer; a late UP cannot
|
|
1425
|
+
fall back to the new owner. Valid idle keyboard/AX activation remains available.
|
|
1426
|
+
Web blurs a focused toolbar before AX hiding. Native busy state must preserve the
|
|
1427
|
+
old raster without UIKit's default disabled-image dimming.
|
|
1428
|
+
|
|
1429
|
+
Platform settlement and progress:
|
|
1430
|
+
|
|
1431
|
+
- iOS uses actual scroll/presentation bounds during programmatic animation;
|
|
1432
|
+
UIView's model offset is not physical completion. Toolbar settlement follows
|
|
1433
|
+
completion, pending-command drain and observer/header restoration, with current
|
|
1434
|
+
generation, controller, transition, attachment and geometry checks. An owned,
|
|
1435
|
+
logically idle toolbar may retry transient tracking/presentation guards on at
|
|
1436
|
+
most two actual display ticks. Every tick rechecks full state; tracking still
|
|
1437
|
+
prevents commit. Real dragging/deceleration/queued transitions do not poll.
|
|
1438
|
+
Success stops immediately; same-context sync does not replenish the budget,
|
|
1439
|
+
and exhaustion stays disabled without self-renewal. Command, drag, route,
|
|
1440
|
+
recycle, mode and exact width changes cancel stale callbacks. Width identifies
|
|
1441
|
+
the geometry owner exactly, independently of visual offset-arrival tolerance.
|
|
1442
|
+
- Android accepts actual `onPageScrolled` for controlled text, independently of
|
|
1443
|
+
shared-header transition bookkeeping. Semantic `onPageSelected` keeps its
|
|
1444
|
+
business timing but cannot write the visual target early. IDLE settlement also
|
|
1445
|
+
requires valid attached bounds, no fake drag/suppression and no pending/computing
|
|
1446
|
+
RecyclerView or ViewPager2 layout. The existing pre-draw drain normally measures
|
|
1447
|
+
and lays out a requested parent pager for this opt-in mode, including when its
|
|
1448
|
+
RecyclerView is already clean. A retained host may reattach with positive
|
|
1449
|
+
bounds but without a completed layout; this opt-in path normally measures and
|
|
1450
|
+
lays out the attached, shown, idle host before testing its real `isLaidOut`.
|
|
1451
|
+
It never assigns that flag or bypasses it. Hidden/zero/busy/computing hosts wait.
|
|
1452
|
+
The existing RecyclerView drain then keeps its original behavior. A deferred turn rechecks all guards and the fresh page before updating
|
|
1453
|
+
endpoint color and toolbar together. Only success records a generation/page
|
|
1454
|
+
stamp; later idle draws do not repeatedly post or lay out. Config, actual motion,
|
|
1455
|
+
transitions and attachment invalidate it; a separately attached busy header can
|
|
1456
|
+
recover. Legacy RecyclerView drain behavior is unchanged. Text-bar background belongs to
|
|
1457
|
+
the parent Header over the full row and fixed slot; row/content are transparent
|
|
1458
|
+
to composite fractional alpha once. Non-text clears that parent and keeps its
|
|
1459
|
+
original row/track path. Toolbar presence/LP/hover/pressed fills do not change
|
|
1460
|
+
this background ownership.
|
|
1461
|
+
- Web samples the live computed CSS track transform and existing gesture progress.
|
|
1462
|
+
Its existing touch path moves the body after release; the new font owner follows
|
|
1463
|
+
that actual CSS movement and does not add continuous body dragging. Timeout or
|
|
1464
|
+
semantic state alone does not settle. Finish, resize and route return
|
|
1465
|
+
require valid live width/transform and no active gesture/inactive route; old
|
|
1466
|
+
RAF/timer/transition owners cannot finish a newer transition.
|
|
1467
|
+
|
|
1468
|
+
Web uses the same existing `CollapsiblePagerView.nativeTabBar` entry point,
|
|
1469
|
+
selection semantics and toolbar dictionary. Pointer CSS owns hover/active states;
|
|
1470
|
+
viewport geometry comes from the clicked element. For compatibility, legacy configurations containing only underline/segmented items remain ignored by Web as before; the new text variant, controlled=true or an explicitly supplied toolbar opt into Web rendering. The consumer remains the owner
|
|
1471
|
+
of menus, filtering, export, analytics and translated labels.
|
|
1472
|
+
|
|
1473
|
+
Acceptance: focused wrapper tests must cover automatic compatibility, controlled
|
|
1474
|
+
presses, stable keys with extra tabs, empty toolbar and toolbar events. Rendered
|
|
1475
|
+
checks must cover long localized labels and p/y/g glyphs, changing tabs while
|
|
1476
|
+
pressed, drag cancellation, sticky headers, SVG icons, light/dark colors, no-icon
|
|
1477
|
+
fixed reservation and native/Web parity. Include adjacent same/different SVG,
|
|
1478
|
+
LP differences, config-before-command, fast reversals/cancel, DOWN-switch-UP,
|
|
1479
|
+
pending/failed/late image completion, mode changes, no-animation, initial attach,
|
|
1480
|
+
resize/reorder/route return and interrupted presence fades. Different-artwork
|
|
1481
|
+
acceptance must render the actual component, not infer it from Home's same icon.
|
|
1482
|
+
Rebuilt Android frames must remove semantic-endpoint flashes and retained-layout
|
|
1483
|
+
settle deadlocks. Focused mounted DOM regressions cover the actual track matrix
|
|
1484
|
+
around 0.49/0.50/0.51 and reversal with interleaved items and unchanged selected
|
|
1485
|
+
AX, plus inherited normal family and text-only reservation cleanup across mode
|
|
1486
|
+
changes. DOM style checks do not prove browser geometry or native glyph weight.
|
|
1487
|
+
Real frame acceptance pairs physical body displacement with normalized glyph
|
|
1488
|
+
shape using the same label's normal/active endpoint references; color darkness
|
|
1489
|
+
alone is not font-weight evidence. Separate bidirectional gestures do not prove
|
|
1490
|
+
same-contact out-and-back behavior, and an out-and-back ending in UP does not prove
|
|
1491
|
+
CANCEL-event behavior. Source/type/JVM-double checks are not runtime proof.
|
|
1492
|
+
|
|
1493
|
+
### React Native public type boundary
|
|
1494
|
+
|
|
1495
|
+
The three codegen specs import the public `CodegenTypes` namespace from
|
|
1496
|
+
`react-native`. NativeScroller's six host methods derive from its existing
|
|
1497
|
+
native `HostRef`, preserving the 11-method ref API and valid parameter calls.
|
|
1498
|
+
`keyboardShouldPersistTaps` explicitly retains the deprecated boolean aliases
|
|
1499
|
+
(`true` to `always`, `false` to `never`) alongside the standard string values;
|
|
1500
|
+
the Web wrapper also normalizes these aliases before forwarding to ScrollView,
|
|
1501
|
+
as in the merged main branch. Other values and owner/ref behavior are unchanged.
|
|
1502
|
+
|
|
1503
|
+
The merged development workspace follows main's RN 0.88/React 19.3 dependency
|
|
1504
|
+
baseline. Fresh normal package prepare/typecheck passed there; isolated copies of
|
|
1505
|
+
the current sources also passed normal declaration builds with RN 0.86.2.
|
|
1506
|
+
Actual ref/parameter fixtures passed on both RN versions, and RN 0.88 checks
|
|
1507
|
+
established bidirectional compatibility of the derived six host methods with
|
|
1508
|
+
public `HostInstance`. Both Codegen parsers produced unchanged three-component
|
|
1509
|
+
schemas relative to the pre-integration PR. Native source and erased JavaScript
|
|
1510
|
+
for the native wrapper/codegen files remain unchanged; the Web boolean forwarding
|
|
1511
|
+
above is a separate main-branch runtime change. These checks do not prove a new
|
|
1512
|
+
RN 0.88 SDK native example build or extend the scoped consumer UI acceptance.
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
### Registry consumer integration (2026-11-05)
|
|
1516
|
+
|
|
1517
|
+
Preview `6.7.0-alpha.449` was published from production source `76834daf9`.
|
|
1518
|
+
The consumer normally installed only Pager and NativeList, with exact package
|
|
1519
|
+
file/tarball parity; Image/logger/skeleton/bottom-tabs remain alpha.422.
|
|
1520
|
+
New official iOS/Android shell and vendor builds exercised Home tab/body/toolbar,
|
|
1521
|
+
Market primary tabs and sticky scrolling. Web exercised the actual narrow App
|
|
1522
|
+
Home and the installed public wrapper keyboard/ref/scroll contract. These are
|
|
1523
|
+
scoped consumer checks, not exact-frame/glyph/performance or rapid/CANCEL/resize
|
|
1524
|
+
acceptance. Earlier source-matched evidence and its limits above remain.
|
|
1525
|
+
|
|
1526
|
+
The publish workflow's Image registry poll timed out; later all 45 exact versions
|
|
1527
|
+
were verified without republishing. Official launch notices record shell and
|
|
1528
|
+
vendor HTTP-404 local-build fallbacks, a shared-preparation wait, and the initial
|
|
1529
|
+
iOS deployment-lock failure (`[nativeDevShell] Command failed (1): node`). Normal
|
|
1530
|
+
App Pod installation refreshed the two selected versions before the successful
|
|
1531
|
+
official launch. Neither platform is described as a clean cache hit. Consumer
|
|
1532
|
+
commit checks passed 9/9; unrelated postinstall noble patch and Web notification/
|
|
1533
|
+
external-image warnings remain separately recorded. Alpha.445 failed Pod
|
|
1534
|
+
integration and was not reused. SDK iOS CI ran on iOS 26.5: iOS-27-only incoming
|
|
1535
|
+
lifecycle cases remained skipped; no local SDK UIKit execution is claimed.
|
|
1536
|
+
|
|
1537
|
+
## Pill tabs and centered content band
|
|
1538
|
+
|
|
1539
|
+
`nativeTabBar.style.variant` also accepts `"pill"` on iOS, Android and Web. It
|
|
1540
|
+
lets wide/desktop consumers replace a JS pill tab bar with the native one, so
|
|
1541
|
+
every platform draws Home tabs from the same config.
|
|
1542
|
+
|
|
1543
|
+
- Items keep intrinsic-width labels (medium face, `fontSize` default 16) with
|
|
1544
|
+
`itemPaddingHorizontal` on each side (default 14; text keeps 10, underline and
|
|
1545
|
+
segmented keep 8). Each item is `height - 2 * contentPaddingVertical` tall and
|
|
1546
|
+
vertically inset by `contentPaddingVertical`.
|
|
1547
|
+
- One rounded background (`indicatorColor`, radius = half its height) sits
|
|
1548
|
+
behind the selected item and follows pager progress. Between two items, the
|
|
1549
|
+
leading edge eases out and the trailing edge eases in, so the pill stretches
|
|
1550
|
+
toward the target before it contracts. Label colors blend from
|
|
1551
|
+
`inactiveTextColor` to `activeTextColor` with the same progress rules as the
|
|
1552
|
+
text variant. With `controlled: true`, programmatic page changes drive the same
|
|
1553
|
+
progress animation as the text variant does.
|
|
1554
|
+
- Pill geometry is always taken from the current item frames (iOS and Android
|
|
1555
|
+
layout passes; Web reads live button boxes on every sync and observes item and
|
|
1556
|
+
list resizes). No size is cached per index, so items that only move when the
|
|
1557
|
+
item list changes still get their own offset and width.
|
|
1558
|
+
- Web only: unselected items use `itemHoverBackgroundColor` and
|
|
1559
|
+
`itemPressedBackgroundColor` for hover / pressed feedback. When the pill
|
|
1560
|
+
changes target without pager progress (Web pages switch instantly), it moves
|
|
1561
|
+
with a 220 ms CSS transition; it does not animate on first placement.
|
|
1562
|
+
Native items have no hover or pressed fill.
|
|
1563
|
+
|
|
1564
|
+
`style.contentMaxWidth` (all variants, all three platforms) caps the width of the
|
|
1565
|
+
tab row together with the toolbar slot and centers that band in the bar. The bar
|
|
1566
|
+
background still covers the full width. Values that are missing, not positive,
|
|
1567
|
+
or at least the bar width leave the existing full-width layout unchanged.
|
|
1568
|
+
|
|
1569
|
+
`style.indicatorAnimationEnabled` (pill only, default true) turns the motion
|
|
1570
|
+
off. When false, the pill sits on the selected item (controlled `selectedKey`,
|
|
1571
|
+
otherwise the rounded pager position) on every update, label colors switch
|
|
1572
|
+
between active and inactive without blending, the Web CSS transition is
|
|
1573
|
+
skipped, and programmatic page changes no longer drive progress frames for the
|
|
1574
|
+
tab bar. Swiping the pages still moves the pages; only the tab bar snaps.
|
|
1575
|
+
|
|
1576
|
+
`itemPaddingHorizontal`, `itemHoverBackgroundColor`, `itemPressedBackgroundColor`,
|
|
1577
|
+
`contentMaxWidth` and `indicatorAnimationEnabled` travel to native code inside the existing
|
|
1578
|
+
`nativeTabBarConfig` JSON (colors through `processColor`), so the codegen props
|
|
1579
|
+
and native component schema stay the same. Existing variants keep their defaults.
|