react-native-roku 0.0.0-stage → 0.2.0-preview.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.
Files changed (200) hide show
  1. package/CHANGELOG.md +318 -0
  2. package/CONTRIBUTING.md +34 -0
  3. package/LICENSE +21 -0
  4. package/NOTICE.md +10 -0
  5. package/README.md +66 -2
  6. package/bin/react-native-roku.mjs +91 -0
  7. package/build/assets.cjs +311 -0
  8. package/build/assets.d.cts +50 -0
  9. package/build/compatibility.d.mts +40 -0
  10. package/build/compatibility.mjs +272 -0
  11. package/build/dev.d.mts +34 -0
  12. package/build/dev.mjs +297 -0
  13. package/build/devWorkspace.d.mts +11 -0
  14. package/build/devWorkspace.mjs +86 -0
  15. package/build/device.d.mts +47 -0
  16. package/build/device.mjs +310 -0
  17. package/build/environment.d.mts +29 -0
  18. package/build/environment.mjs +144 -0
  19. package/build/esbuild.d.mts +5 -0
  20. package/build/esbuild.mjs +118 -0
  21. package/build/fontVariants.d.mts +27 -0
  22. package/build/fontVariants.mjs +424 -0
  23. package/build/frontend.d.mts +52 -0
  24. package/build/frontend.mjs +75 -0
  25. package/build/identity.mjs +45 -0
  26. package/build/index.d.mts +22 -0
  27. package/build/index.mjs +87 -0
  28. package/build/intl.mjs +121 -0
  29. package/build/metro.cjs +38 -0
  30. package/build/metro.d.cts +37 -0
  31. package/build/metroFrontend.mjs +222 -0
  32. package/build/metroMetadata.mjs +119 -0
  33. package/build/metroModules.mjs +397 -0
  34. package/build/metroRefresh.d.mts +64 -0
  35. package/build/metroRefresh.mjs +346 -0
  36. package/build/metroTransformer.cjs +146 -0
  37. package/build/nativeTextMemo.mjs +296 -0
  38. package/build/nativewind.d.mts +9 -0
  39. package/build/nativewind.mjs +92 -0
  40. package/build/project.d.mts +111 -0
  41. package/build/project.mjs +615 -0
  42. package/build/reactCompiler.mjs +113 -0
  43. package/build/reactProfile.cjs +35 -0
  44. package/build/refreshRuntime.mjs +187 -0
  45. package/build/refreshSourceMap.mjs +53 -0
  46. package/build/release.mjs +99 -0
  47. package/build/resolution.d.mts +3 -0
  48. package/build/resolution.mjs +25 -0
  49. package/build/surfaces.d.mts +1 -0
  50. package/build/surfaces.mjs +42 -0
  51. package/build/testing/node.d.mts +29 -0
  52. package/build/testing/node.mjs +106 -0
  53. package/build/yoga.d.mts +8 -0
  54. package/build/yoga.mjs +186 -0
  55. package/compatibility/public-api.json +327 -0
  56. package/compatibility/registry.json +2258 -0
  57. package/config/release.json +15 -0
  58. package/config/toolchain.json +34 -0
  59. package/docs/compatibility.md +813 -0
  60. package/docs/getting-started.md +460 -0
  61. package/docs/maintenance.md +362 -0
  62. package/docs/qualification.md +241 -0
  63. package/docs/standalone-testing.md +56 -0
  64. package/examples/hello-roku/README.md +35 -0
  65. package/examples/hello-roku/package.template.json +31 -0
  66. package/examples/hello-roku/pnpm-workspace.yaml +11 -0
  67. package/examples/hello-roku/roku.config.json +22 -0
  68. package/examples/hello-roku/src/App.tsx +54 -0
  69. package/examples/hello-roku/src/Catalog.tsx +200 -0
  70. package/examples/hello-roku/src/assets.d.ts +16 -0
  71. package/examples/hello-roku/src/catalog-cover.png +0 -0
  72. package/examples/hello-roku/tsconfig.json +1 -0
  73. package/examples/hello-roku/tsconfig.react.json +1 -0
  74. package/native/components/RNRAppControl.brs +215 -0
  75. package/native/components/RNRAppControl.xml +13 -0
  76. package/native/components/RNRDeviceFacts.brs +19 -0
  77. package/native/components/RNRDeviceFacts.xml +9 -0
  78. package/native/components/RNRDeviceFactsTask.brs +74 -0
  79. package/native/components/RNRDeviceFactsTask.xml +9 -0
  80. package/native/components/RNRTextRaster.brs +15 -0
  81. package/native/components/RNRTextRaster.xml +9 -0
  82. package/native/components/RNRTextRasterTask.brs +77 -0
  83. package/native/components/RNRTextRasterTask.xml +9 -0
  84. package/native/manifest.json +7 -0
  85. package/package.json +183 -3
  86. package/src/animation/clock.ts +10 -0
  87. package/src/animation/derivedValue.ts +163 -0
  88. package/src/animation/legacyAnimated.ts +255 -0
  89. package/src/animation/reanimated.ts +243 -0
  90. package/src/animation/sharedValue.ts +285 -0
  91. package/src/animation/worklets.ts +23 -0
  92. package/src/application/AppRegistry.ts +31 -0
  93. package/src/application/mountApplication.ts +136 -0
  94. package/src/graphics/BitmapLayer.tsx +68 -0
  95. package/src/graphics/RoundedBorder.tsx +116 -0
  96. package/src/graphics/TextRasterCache.ts +259 -0
  97. package/src/graphics/gradient.ts +37 -0
  98. package/src/graphics/inlineRaster.ts +85 -0
  99. package/src/graphics/png.ts +77 -0
  100. package/src/graphics/rasterPixels.ts +89 -0
  101. package/src/graphics/surfaces.ts +105 -0
  102. package/src/graphics/textRaster.types.ts +60 -0
  103. package/src/graphics/textRasterGeometry.ts +116 -0
  104. package/src/host/host.types.ts +57 -0
  105. package/src/index.ts +22 -0
  106. package/src/interop/nativewind.ts +2 -0
  107. package/src/layout/FontResources.ts +252 -0
  108. package/src/layout/affine.ts +89 -0
  109. package/src/layout/flexLayout.ts +398 -0
  110. package/src/layout/fontFaces.d.mts +19 -0
  111. package/src/layout/fontFaces.mjs +85 -0
  112. package/src/layout/fontVariants.d.mts +2 -0
  113. package/src/layout/fontVariants.mjs +8 -0
  114. package/src/layout/inlineParagraph.ts +158 -0
  115. package/src/layout/inlineText.ts +68 -0
  116. package/src/layout/layoutReuse.ts +117 -0
  117. package/src/layout/nativeNodeFields.ts +179 -0
  118. package/src/layout/preparedFields.ts +78 -0
  119. package/src/layout/textLayout.ts +138 -0
  120. package/src/layout/transform.ts +113 -0
  121. package/src/media/SceneGraphAudio.ts +161 -0
  122. package/src/media/SceneGraphVideo.ts +167 -0
  123. package/src/media/audioSession.ts +84 -0
  124. package/src/media/index.ts +2 -0
  125. package/src/media/videoErrorDetails.ts +40 -0
  126. package/src/media/videoSession.ts +136 -0
  127. package/src/navigation/RouterStore.ts +244 -0
  128. package/src/navigation/expoRouter.ts +115 -0
  129. package/src/react-native/NativeInput.ts +494 -0
  130. package/src/react-native/NativeSystemState.ts +95 -0
  131. package/src/react-native/accessibility.ts +265 -0
  132. package/src/react-native/activityIndicator.ts +72 -0
  133. package/src/react-native/compilerPressable.ts +26 -0
  134. package/src/react-native/createNativeRoot.ts +2126 -0
  135. package/src/react-native/directionalFocus.ts +55 -0
  136. package/src/react-native/environment.ts +275 -0
  137. package/src/react-native/flatList.ts +1001 -0
  138. package/src/react-native/flatListViewability.ts +231 -0
  139. package/src/react-native/focusEvents.ts +85 -0
  140. package/src/react-native/image.ts +247 -0
  141. package/src/react-native/index.ts +54 -0
  142. package/src/react-native/interactionManager.ts +76 -0
  143. package/src/react-native/keyboard.ts +60 -0
  144. package/src/react-native/linearGradient.ts +94 -0
  145. package/src/react-native/modal.tsx +148 -0
  146. package/src/react-native/nativeHostContext.ts +80 -0
  147. package/src/react-native/nativeModules.ts +86 -0
  148. package/src/react-native/nativeRoot.types.ts +22 -0
  149. package/src/react-native/nativeViewHandle.ts +191 -0
  150. package/src/react-native/nativewindPressable.ts +38 -0
  151. package/src/react-native/panResponder.ts +73 -0
  152. package/src/react-native/primitives.ts +685 -0
  153. package/src/react-native/safeArea.ts +76 -0
  154. package/src/react-native/scrollView.ts +289 -0
  155. package/src/react-native/styleInterop.ts +8 -0
  156. package/src/react-native/styleSheet.ts +54 -0
  157. package/src/react-native/textInput.ts +334 -0
  158. package/src/react-native/unsupported.ts +25 -0
  159. package/src/renderer/SceneRoot.ts +1006 -0
  160. package/src/scene/SdkDeviceFacts.ts +151 -0
  161. package/src/scene/SdkDeviceServices.ts +72 -0
  162. package/src/scene/SdkSceneGraph.ts +124 -0
  163. package/src/scene/SdkTextEntry.ts +321 -0
  164. package/src/scene/SdkTextMetrics.ts +136 -0
  165. package/src/scene/SdkTextRasterTransport.ts +191 -0
  166. package/src/scene/SdkWebTransport.ts +122 -0
  167. package/src/scene/createRokuHost.ts +213 -0
  168. package/src/scene/sceneGraph.types.ts +38 -0
  169. package/src/services/DeviceServices.ts +53 -0
  170. package/src/services/RegistryStorage.ts +85 -0
  171. package/src/services/RokuKeySession.ts +29 -0
  172. package/src/services/asyncStorage.ts +23 -0
  173. package/src/services/base64.ts +52 -0
  174. package/src/services/crypto.ts +18 -0
  175. package/src/services/expoConstants.ts +11 -0
  176. package/src/services/expoLinking.ts +12 -0
  177. package/src/services/expoStatusBar.ts +4 -0
  178. package/src/services/installWebRuntime.ts +105 -0
  179. package/src/services/intlEnglish.ts +54 -0
  180. package/src/services/languageRuntime.ts +65 -0
  181. package/src/services/nativeTimers.ts +96 -0
  182. package/src/services/secureStore.ts +23 -0
  183. package/src/services/textEntryRequest.ts +22 -0
  184. package/src/services/utf8.ts +57 -0
  185. package/src/services/webRuntime.ts +346 -0
  186. package/src/testing/CanvasResources.ts +141 -0
  187. package/src/testing/CanvasSceneGraph.ts +496 -0
  188. package/src/testing/CanvasTextEntry.ts +237 -0
  189. package/src/testing/PreviewTextObservations.ts +82 -0
  190. package/src/testing/RecordingSceneGraph.ts +136 -0
  191. package/src/types/normalize-colors.d.ts +4 -0
  192. package/src/vector/dynamicSvg.tsx +226 -0
  193. package/src/vector/svg.ts +222 -0
  194. package/src/vector/svg.types.ts +4 -0
  195. package/src/vector/svgElements.ts +58 -0
  196. package/src/vector/svgKey.d.mts +4 -0
  197. package/src/vector/svgKey.mjs +16 -0
  198. package/src/vector/svgPath.ts +157 -0
  199. package/src/vector/svgPixels.ts +133 -0
  200. package/tsconfig.consumer.json +29 -0
@@ -0,0 +1,813 @@
1
+ # Compatibility contract
2
+
3
+ This is an experimental platform package, not a general claim of React Native
4
+ or third-party library compatibility. Supported versions are pinned in the
5
+ manifest and lockfile. The adapter inventory is exported from `/build`; it is
6
+ the source of truth for consumer bundlers and evidence tools.
7
+
8
+ The implemented surface includes View/Text/Pressable, images and gradients,
9
+ scroll and input mechanics, nested text, Yoga layout, native measurements,
10
+ focus/input transport, accessibility observations, bounded animation, SVG
11
+ geometry/raster adapters, navigation, device services, network/web primitives,
12
+ and SceneGraph video execution. Reanimated/worklets and Expo adapters implement
13
+ bounded subsets. Worklets run on the JavaScript host; this is not the upstream
14
+ native UI thread architecture. Private React Native imports are unsupported.
15
+ Unsupported operations should fail explicitly instead of implying success.
16
+
17
+ Host tests prove JavaScript contracts and cleanup through a recording or Canvas
18
+ SceneGraph. They cannot prove firmware rendering, measured native font parity,
19
+ remote timing, native networking/storage protection, codecs, DRM, audio routing,
20
+ subtitle execution, or sustained device memory/performance. The upstream Hermes
21
+ CLI in the test cohort lacks native Intl; the opt-in English profile now
22
+ passes its expanded formatting, collation and date-method host contracts.
23
+ Actual Roku hardware qualification is required before calling this production
24
+ ready. RSG 2.0 beta availability and channel distribution are separate gates.
25
+
26
+ `aria-describedby` resolves an ordered HTML-whitespace ID list from the same
27
+ direct committed source snapshot as label relationships. It supplies the
28
+ control's spoken hint without changing its name. Missing references fall back
29
+ to `accessibilityHint`; an existing empty description suppresses that fallback.
30
+ Committed source changes, replacement, retirement, modal exposure and live
31
+ updates use the same bounded publication owner. Description relationships do
32
+ not recursively follow each other's hints, so cycles remain finite.
33
+
34
+ This exposed-host profile excludes hidden/modal-background description sources.
35
+ HTML can use explicitly referenced hidden sources, as observed independently in
36
+ Chromium for the input fixture. This is a bounded
37
+ [ARIA description relationship](https://www.w3.org/TR/wai-aria-1.2/#aria-describedby)
38
+ contract, not the complete HTML name/description algorithm or native assistive
39
+ traversal/speech qualification.
40
+
41
+ The preview requires a physical Roku to pass the paired rounded-poster check
42
+ using the device's built-in developer installer screenshots. It compares every
43
+ corner with the same poster rendered square, verifies the visible state and
44
+ records the model and firmware. The older JPEG probe measured 14 against a
45
+ tolerance of 12. A known-good frame can exceed that tolerance during JPEG
46
+ encoding. See [qualification](qualification.md#physical-roku-clipping).
47
+ First visible highlight remains unmeasured.
48
+
49
+ The 360 × 660 parity scene used the same Inter Regular file on the Ultra
50
+ and stock React Native 0.86.2 on iOS. Six authored Yoga frames matched.
51
+ Roku wrapped one more word onto the second line of the long title and kept
52
+ two more characters before the single-line ellipsis. Check the visible text
53
+ on the target when the last word or character matters.
54
+
55
+ ## Motion
56
+
57
+ The JS animation runner fences reentrant request replacement, cancellation,
58
+ user-easing samples and subscriber publications. A cancellation callback can
59
+ admit a newer animation without leaving an orphaned clock; an obsolete sample
60
+ or publication cannot overwrite the replacement. Host and independent-consumer
61
+ contracts cover those lifetimes. Native timing/smoothness remain unqualified.
62
+
63
+ Derived values reconcile captured React props and conditional shared reads after
64
+ commits. Equivalent timing/composition requests retain their clock while easing
65
+ and completion callbacks use the latest committed closure. Changed targets,
66
+ durations or composition admit a replacement. Retirement removes subscriptions
67
+ before canceling work. These are JS host semantics, including effect replay;
68
+ they do not establish upstream UI-thread scheduling or native presentation parity.
69
+
70
+ ## Static raster assets
71
+
72
+ Project builds prepare static PNG/JPEG and convert WebP to PNG. Metro preserves
73
+ logical dimensions while selecting a build-time density, and restores images
74
+ after transform-cache hits. Embedded data URI values remain authored strings;
75
+ the image adapter resolves their registered packaged URI. Animated images,
76
+ adaptive density changes and other embedded formats remain unsupported. SDK
77
+ packaging and host observations do not certify firmware pixels or decoded media.
78
+
79
+ ## Optional Intl bootstrap
80
+
81
+ `react-native-roku/intl/en` installs missing Intl implementations through pinned
82
+ FormatJS packages, with explicit English number/calendar data, collation data and
83
+ the golden time-zone set. Import this profile before application formatting and
84
+ call `configureIntlTimeZone(observedTimeZone)`. Working native constructors and
85
+ their system time zone remain in place. The polyfill requires a nonempty, valid
86
+ observed zone; an unknown zone must not silently become UTC. The SDK host obtains
87
+ the raw zone through its DeviceInfo task before mounting. A few documented Roku
88
+ geographic names are normalized; other names use the formatter's IANA validation.
89
+
90
+ This profile has a material bundle cost, especially collation data. It is opt-in
91
+ and does not claim all locales, calendars, or native timezone behavior. Host
92
+ contracts include currency/compact numbers, numeric sorting, accent-insensitive
93
+ comparison, Date locale methods and a daylight-saving transition. Device locale
94
+ and timezone observations still need firmware review. Native-independent tests
95
+ use explicit fixture zones. Other locale profiles can be added with their own
96
+ data and qualification rather than substituting English for a requested locale.
97
+
98
+ Every newly used API needs a contract or an explicit unsupported decision.
99
+
100
+ Application registration, generated SDK mechanics and the Canvas watch/reload
101
+ workflow are qualified through independent packed installs. AppRegistry exposes
102
+ registration/query helpers, not the complete upstream API. The Metro adapter is
103
+ a target-scoped resolver and dependency transformer. The optional Metro project
104
+ builder retains the same component/registry and native generation boundary,
105
+ extracts complete Intl tables and bounds modules for SDK transformation. Its
106
+ packed consumer qualification covers the generated Metro graph. Device live reload requires physical testing. Metro browser development adds stateful React Refresh through
107
+ one retained module cache, with full reload for unsafe lifetime/configuration
108
+ changes. Its installed-consumer qualification is distinct from native stateful
109
+ hot reload. Existing React Native and TVOS
110
+ targets retain their own resolution and runtime.
111
+
112
+ ## Modal presentation
113
+
114
+ `Modal` preserves React context through a viewport portal and escapes ancestor
115
+ clipping. `animationType` accepts `none`, `fade` and `slide`. Fade changes opacity;
116
+ slide translates the viewport vertically. Animated transitions use the existing
117
+ JavaScript executor over 300 ms, retain the portal and Back ownership until close
118
+ finishes, and cancel retired completions on reversal or unmount. `onShow` follows
119
+ opening completion; `onDismiss` follows portal retirement. No-animation closure
120
+ remains immediate. Native animation smoothness, physical focus and presentation
121
+ timing require device review; this is not a native-thread performance claim.
122
+
123
+ Back ownership follows the top committed modal's exposure, independently of
124
+ parent/child effect registration order. Lower or retired portals cannot consume
125
+ Back ahead of that modal. Closing transitions retain ownership, including when
126
+ an opening reversal is interrupted again. Mounted route replacement/return tests
127
+ retain held-input and queued-completion cleanup; the independent packed consumer
128
+ checks nested Back and complete retirement. A fully hidden modal receives a new
129
+ presentation order when reopened, placing it above siblings that remained open.
130
+ Component mount order does not decide that later presentation. Reversing an
131
+ unfinished close preserves its existing order, keeping a retained nested modal
132
+ above its parent. Two fixed-seed schedules exercise 96 sibling transitions each;
133
+ actual Chromium checks the pinned web manager's Escape routing separately.
134
+ The packed SDK/Canvas fixture verifies visible sibling layering and Back cleanup.
135
+ These are host lifetimes; native modal ordering remains device-pending.
136
+
137
+ ## Video error observations
138
+
139
+ `SceneGraphVideo` observes native `errorCode` and structured `errorInfo` as well
140
+ as playback state. Its snapshot retains bounded integer codes and the documented
141
+ `http`, `drm`, `mediaerror` and `mediaplayer` categories. Raw native messages,
142
+ debug strings and module/source names are excluded. A repeated error state does
143
+ not emit another failure; fields arriving later publish `error-details` instead
144
+ of another recovery edge. Source replacement and retirement fence all callbacks.
145
+ Host ordering fixtures do not establish firmware decoding or recovery behavior.
146
+ See the [native Video fields](https://developer.roku.com/dev/docs/video) and
147
+ [SDK Video events](https://developer.roku.com/dev/docs/rsg-sdk-video).
148
+
149
+ ## Audio resource
150
+
151
+ `SceneGraphAudio` from `/media` mounts a nonvisual Audio node, with an explicit
152
+ MP3, MP4, FLAC, HLS or AAC-ADTS stream format and optional request headers.
153
+ Position, duration, state and decoder format come only from field observations.
154
+ Pause disables autoplay after seek; source replacement and ancestor removal
155
+ request Stop before retiring listeners/nodes. The consumer owns queues,
156
+ admission, source-time mapping and progress persistence. There is no native
157
+ playlist policy or fabricated decoder acknowledgement.
158
+
159
+ The resource exposes mute, without fractional volume or playback-rate setters.
160
+ These controls require additional consumer/output mechanics before claiming
161
+ feature parity. Host contracts and packed SDK compilation do not qualify audible
162
+ output, seek accuracy or firmware cleanup. See Roku's
163
+ [Audio interface](https://developer.roku.com/dev/docs/rsg-sdk-audio) and
164
+ [audio stream formats](https://developer.roku.com/dev/docs/roaudioplayer).
165
+
166
+ ## Wrapped styled text
167
+
168
+ Nested `Text` with wrapping uses whole-run font widths to break attributed text
169
+ into lines. Its native group retains one `MultiStyleLabel` per line, preserving
170
+ fonts, colors, explicit blank lines, authored line heights and tail ellipsis.
171
+ Line nodes are reused across edits and retired when a paragraph shrinks or its
172
+ ancestor unmounts. Exact packaged fonts must finish preparation before commit.
173
+ Single-line mixed text retains the direct native label path.
174
+
175
+ `FontResources` and both project builders select explicit physical font files
176
+ from `fonts.families` before measurement, native Labels or raster work. Each
177
+ font/raster owner captures its asset map at construction. Caller edits or
178
+ deletions keep existing readiness, metadata and newly sized font resources on
179
+ that captured map; reconfiguration requires a new owner. Host URI checks and
180
+ installed Node/Hermes raster-request checks establish this identity boundary. A logical
181
+ family declares `normal`/`italic` maps for static weights 100–900 in steps of 100;
182
+ RN `normal` and `bold` select 400 and 700. A missing face or unsupported weight
183
+ fails before allocation. Named physical families remain usable by controls that
184
+ already select a concrete face and normalize their weight to 400. No synthetic
185
+ bold/italic or variable-font axis selection is implied. Applying italic to a
186
+ declared physical normal face selects the group's corresponding real italic
187
+ file at that physical weight. Conflicting mappings fail explicitly.
188
+
189
+ The paragraph budget is 64 runs, 32,768 code points and 512 native lines.
190
+ Oversized words split at Unicode code-point boundaries; full Unicode line-break
191
+ and grapheme segmentation are not implemented. Wrapped tracked/shadowed mixed
192
+ text still needs the raster adapter. Native shaping, baseline alignment,
193
+ accessibility and physical font fidelity remain device-pending. Host contracts
194
+ and independent packed-consumer checks establish layout fields and cleanup.
195
+
196
+ Tabular digits use an explicit static font asset, shared by measurement, Labels,
197
+ mixed text and raster requests. Configure `fonts.variants: ["tabular-nums"]` in
198
+ the public project builder. `prepareRokuFontAssets` from `build/project` provides
199
+ the same preparation for custom build integrations; `fontVariantFamily` from
200
+ `fonts` owns the logical face key. A missing configured face fails before native
201
+ allocation instead of silently drawing proportional digits.
202
+
203
+ The build profile admits standalone static TrueType fonts with an unconditional
204
+ single-glyph OpenType `tnum` feature. It retains outlines, advances, Unicode
205
+ coverage and license records, changes family identifiers, and recalculates
206
+ checksums. Contextual/language-specific feature profiles, variable fonts and
207
+ other `fontVariant` values require further implementation and are rejected.
208
+ Browser font output and SDK compilation do not qualify native typography.
209
+
210
+ ## Text preparation failure
211
+
212
+ A failed raster preparation releases its own successful sibling leases
213
+ immediately, including siblings that complete later. A synchronous layout walk
214
+ failure also retires pending acquisitions. Already committed rasters stay owned
215
+ until successful replacement or unmount; an obsolete preparation cannot release
216
+ a newer cohort. Started font/raster promises remain observed when a later
217
+ synchronous failure prevents the normal join, preserving the original error.
218
+
219
+ The independent consumer exercises the actual cache within an 80,000-byte
220
+ two-entry budget, failed preparation, eviction and recovery. This qualifies
221
+ resource ownership with synthetic mask/write ports, not device raster output.
222
+ The existing root error contract remains: a latched native failure is surfaced
223
+ by the next synchronous flush while a new async preparation may already be
224
+ queued; callers must handle that error and await the replacement commit.
225
+
226
+ Native-root retirement preserves the earliest render/cleanup error while
227
+ attempting every service binding, text provider, remaining raster lease and
228
+ raster-provider cleanup. One failure cannot skip later owners. A later
229
+ `unmount()` retries failed provider/resource actions without replaying successful
230
+ cleanup or reviving React/native host authority. Reentrant disposal does not
231
+ start a second retirement. `TextRasterCache` closes admission and clears its
232
+ budget immediately, while retaining a failed transport-disposal callback for
233
+ retry. The independent installed consumer uses the actual bounded cache to
234
+ check font, raster-transport and previously latched render failures separately.
235
+ These are host error/ownership contracts, not observed device cleanup.
236
+
237
+ The raster cache reserves a keyed entry and its bytes before invoking draw or
238
+ eviction callbacks. Reentrant callers of the same key share that pending result;
239
+ a distinct key still requires its own budget. Eviction submission retains its
240
+ delete-before-draw order. A callback that retires the cache cannot submit a new
241
+ bitmap write, restore an entry or subtract an already cleared reservation.
242
+ Throwing draw callbacks retain their original error. Source failure cases and
243
+ an independent installed public-cache consumer cover these synchronous callback
244
+ boundaries with synthetic file ports; native file completion remains pending.
245
+
246
+ The SDK host retains its existing single shutdown transaction and reports the
247
+ first publication, application-disposal or provider-cleanup failure after all
248
+ cleanup steps have been attempted. The raster transport separately tracks its
249
+ dispose-request submission and owned reply-observer detachment. Both are
250
+ attempted after pending work is rejected; a later call retries only a failed
251
+ step. Reentrancy and late replies keep admission closed. Pinned SDK call-boundary
252
+ tests and packed SDK compilation cover these mechanics. Native task execution
253
+ and physical cleanup remain device-pending.
254
+
255
+ Owned text-entry and device-facts reply/event handlers submit their previous
256
+ callback as the pinned SDK's unregister cue. Device-facts fan-out stops when an
257
+ earlier callback disposes the bridge, and repeating an old subscription's
258
+ removal cannot delete a replacement subscription. A failed raster request
259
+ submission clears its timer and current identity before its queued successor
260
+ runs. Source tests retain those failures; the installed public device-facts and
261
+ raster bridges separately execute with the actual SDK property function under
262
+ Node and explicitly selected Hermes, using synthetic Tree API/timer ports.
263
+ Text-entry's unregister call has source and SDK-build coverage. Native event
264
+ ordering and physical observer removal remain device-pending.
265
+
266
+ `FontResources` retains failed identities within its existing resource budget;
267
+ failures do not enable automatic retries or reclaim that identity's budget slot.
268
+ Native initialization failures preserve the original rejection instead of a
269
+ resolved placeholder. Retained nonvisual refs have an acknowledged parent
270
+ before field writes, and an unacknowledged insertion is explicitly reattached
271
+ before release. A failed removal keeps disposal authority; reentrant cleanup
272
+ cannot remove the same ref twice. Disposal attempts all fonts, cancels pending
273
+ readiness, reports the first failure, and can retry remaining cleanup while
274
+ preparation stays retired. Queued readiness does not start after immediate
275
+ disposal, and reentrant metric acquisition cannot publish a retired font as
276
+ ready. Fault-injected host ports and SDK compilation establish these error-path
277
+ contracts; they do not observe firmware font/transport failure behavior.
278
+
279
+ ## Keyed collections
280
+
281
+ `FlatList` retains a bounded keyed window. `maxToRenderPerBatch` (default 10)
282
+ limits newly added offscreen rows; `updateCellsBatchingPeriod` (default 50 ms)
283
+ sets the delay between batches. Visible rows have priority and can exceed this
284
+ offscreen budget. Deferred work waits for explicit InteractionManager leases and
285
+ is cancelled on data/window/configuration replacement, StrictMode replay and
286
+ unmount. Existing keyed native rows and held presses survive window expansion.
287
+ These are JavaScript-host contracts, not native-thread or device timing claims.
288
+
289
+ `ListHeaderComponentStyle` and `ListFooterComponentStyle` apply to internal View
290
+ wrappers, separately from each boundary component's own style. Wrapper padding
291
+ and measured extent participate in the supported axis's index/end geometry;
292
+ the committed origin following a header includes its outer margins too.
293
+ Replacing or removing a boundary retires its previous extent. Existing layout
294
+ and collection limitations still apply. The independent consumer covers vertical
295
+ one/two/three-column and horizontal lists, while the SDK/Canvas horizontal
296
+ fixture checks wrapper padding and actual background pixels.
297
+
298
+ `initialScrollIndex` applies once per mounted list and requires `getItemLayout`
299
+ for a nonzero index. It waits for viewport/header measurement and includes the
300
+ leading content inset. When an initially empty list receives data, it waits for
301
+ the new committed content extent before submitting that request. Removal or
302
+ arrival of a header uses current geometry. Explicit scroll commands supersede a pending initial
303
+ request. `maintainVisibleContentPosition.minIndexForVisible` selects an actually
304
+ visible eligible key, preserving its position through insertion and keyed
305
+ reordering. Window selection applies the anchor before reconciliation so the
306
+ retained visible owner survives a distant reorder; this host guarantee does not
307
+ qualify upstream native reorder behavior. It does not
308
+ anchor a row below the viewport or below that minimum index.
309
+
310
+ `numColumns` groups equal-height items into vertical rows, with
311
+ `columnWrapperStyle` composed after the default row direction. Incomplete final
312
+ rows retain only their actual items; this is not masonry. The mapping follows
313
+ the pinned React Native 0.86.2-0 `FlatList.js`: `renderItem` and `keyExtractor`
314
+ receive original item indices, while `getItemLayout` receives the original data
315
+ and a **row index**. `initialScrollIndex`, `scrollToIndex`, failed-index reports,
316
+ initial/batch limits and separators likewise address rows. Declared offsets must
317
+ include row separators and authored spacing. These index spaces are distinct.
318
+ `getItemLayout.length` controls index alignment; separator spacing belongs in
319
+ successive offsets and does not replace that declared length. Repeated explicit
320
+ index/offset commands retain the current committed content clamp even when the
321
+ scroll owner emits no changed-offset event. Anchor restoration instead retains
322
+ its arriving keyed window until a grown native content extent can accept it.
323
+
324
+ Row keys concatenate the item keys with `:`; child slots retain local column
325
+ identity. Moving an unchanged complete row retains it, while changing a row's
326
+ membership can remount its items, including an item that moves to another row.
327
+ The default item key uses `key`, then `id`, then its index. Visible and retained
328
+ windows contain complete rows, and queued offscreen row batches retire on
329
+ replacement/unmount. The independent consumer records bounded work for 30,001
330
+ items; a seven-item SDK/Canvas fixture separately checks compilation, viewport
331
+ geometry, visible pixels and retirement. Neither proves native scrolling/focus.
332
+
333
+ Changing the `numColumns` prop requires changing the list's React key to remount
334
+ it, matching the pinned upstream invariant. Horizontal grids and
335
+ `columnWrapperStyle` on a single-column list fail explicitly.
336
+
337
+ `horizontal` supports a single windowed lane. Item measurements, declared
338
+ lengths/offsets, initial/index/end commands, view-position alignment and viewport
339
+ changes use widths and x offsets. Header/footer/empty boundaries, leading and
340
+ trailing padding, separators, extraData, queued batching and retirement share
341
+ the collection owner. Unknown index geometry reports through
342
+ `onScrollToIndexFailed`; `scrollToEnd` can measure the destination tail.
343
+ `showsHorizontalScrollIndicator` controls the active-axis indicator. Switching
344
+ axes requires a new React key in this subset. Independent packed consumers
345
+ exercise declared and measured variable widths with 30,001 items, plus a bounded
346
+ SDK/Canvas fixture with actual visible pixels. Touch-drag events remain pending.
347
+ `removeClippedSubviews` preserves native groups
348
+ inside the retained React window. Device scrolling, memory and frame pacing
349
+ remain pending. See the upstream
350
+ [batch configuration](https://reactnative.dev/docs/optimizing-flatlist-configuration)
351
+ for the responsiveness/fill-rate tradeoff.
352
+
353
+ `onViewableItemsChanged` and one `viewabilityConfig` form a bounded JavaScript
354
+ profile. Known row metrics in the retained range determine viewability after
355
+ commit: fully visible rows qualify regardless of the threshold, while partial
356
+ rows use exactly one item-visible or viewport-coverage percentage (0–100).
357
+ Integer pixel rounding matches the pinned `ViewabilityHelper`. Declared lengths
358
+ exclude separator stride; measured cells include their measured separator.
359
+ Header and leading padding are included. Multi-column callbacks expand each
360
+ qualifying row into original item/index/key tokens, including an incomplete tail.
361
+ This is list-viewport geometry; covered, clipped or background windows do not
362
+ become native visibility observations.
363
+
364
+ The default threshold is zero viewport coverage. An authored config must specify
365
+ exactly one threshold. `minimumViewTime` accepts a finite nonnegative delay up to
366
+ 2,147,483,647 ms. Following the pinned helper, each changed index set schedules a
367
+ timer that filters its captured indices against the current set when it fires.
368
+ Leaving and reentering before an earlier timer fires can qualify at that earlier
369
+ time; this does not promise uninterrupted dwell time. Unchanged sets do not
370
+ schedule more work. Data/extraData replacement cancels pending old-generation
371
+ timers, a stricter owner boundary than the pinned helper's captured old props;
372
+ published keys remain the comparison identity. Empty data does not itself emit
373
+ removal tokens, matching the pinned helper. A known first-cell metric is required,
374
+ so replacing all keys away from the origin without declared geometry can defer
375
+ callbacks until that metric is observed.
376
+
377
+ `waitForInteraction` is released by the list ref's `recordInteraction()`. A
378
+ programmatic scroll does not fabricate a native drag or record interaction.
379
+ Native drag delivery remains pending. Callback function replacement uses the
380
+ current committed function, including pending timer delivery. Same-value configs
381
+ are allowed; changing config values or callback nullability requires a new list
382
+ React key. `viewabilityConfigCallbackPairs` fails explicitly. Retirement cancels
383
+ pending callbacks and revokes saved interaction handles. Independent consumers
384
+ cover 30,001 items with bounded retained work; the SDK/Canvas column fixture
385
+ separately checks original-item token delivery. This profile does not certify
386
+ the complete upstream viewability API or device timing.
387
+
388
+ ## Image preparation
389
+
390
+ ### Preview and Node testing ownership
391
+
392
+ `/preview` exports `createCanvasFontRegistry` and `observePreviewText` alongside
393
+ the Canvas scene and text adapters. Font registries receive registration and
394
+ unregistration factories; no native Canvas dependency is required. Each host
395
+ creates an owner, awaits `ready(uri, family, signal?)` before measurement, and
396
+ calls `dispose()` on retirement. Exact URI/family registrations are shared.
397
+ The default 32-entry budget includes pending and failed-release resources;
398
+ `retireUnused()` retires idle registrations, attempts independent releases and
399
+ keeps failures for an explicit retry. Active fonts are never evicted. Failed
400
+ preparation does not publish a registration; a late completion after retirement
401
+ releases its token. Factories must return independently releasable tokens.
402
+
403
+ `observePreviewText(raster)` wraps the public raster provider and exposes a
404
+ `snapshot(sceneRoot)` of attached, enabled label/raster text. Released, detached,
405
+ hidden and retired raster history cannot satisfy a later assertion. This does
406
+ not prove clipping, rendered pixels or native presentation. The wrapper owns
407
+ source disposal; the consumer still owns the scene and its asset policy.
408
+
409
+ `/testing/node` is an explicitly Node/testing entry. `canvasImageSource(image)`
410
+ adapts an injected native decoder's `src` clearing to the Canvas preview's
411
+ `removeAttribute("src")` contract. `createNodeTextHttp({createPortableFetch})`
412
+ adapts Node fetch to the public text-transport contract and exposes bounded
413
+ idle/listener diagnostics. Compile/load `createPortableFetch` from the installed
414
+ `/web` entry; Node cannot directly strip package TypeScript in node_modules.
415
+ An injected custom fetch port defaults to follow-only; strict support requires
416
+ an explicit verified `redirectModes: ["follow", "error"]`. The portable layer
417
+ rejects undeclared strict policy before sending a request. Native Node fetch
418
+ supports that policy; post-response URL inspection alone is insufficient.
419
+ Credentials are omitted, binary responses are cancelled/rejected, and abort
420
+ forwarders retire after completion or failure. These helpers do not select
421
+ application origins, fixture routes, credentials or assertions.
422
+
423
+ The independent packed consumer exercises these APIs with its own resources and
424
+ real loopback GET/POST/status/header/body/abort/redirect/binary controls. The
425
+ runtime graph check covers the root, application, preview and SDK host entries
426
+ and rejects Node testing IO. Node sockets, Canvas observations
427
+ and SDK compilation do not qualify firmware HTTP, fonts, decoding or storage.
428
+
429
+ Image load state belongs to the resolved source plus `recyclingKey` tuple.
430
+ Changing either remounts the Poster and resets partial readiness, dimensions and
431
+ terminal status. A completed or failed generation cannot restart from late
432
+ observations. Null/empty recycling keys share the default identity. This follows
433
+ the [Expo recycling intent](https://docs.expo.dev/versions/latest/sdk/image/#recyclingkey)
434
+ within the existing Poster subset, rather than claiming the entire Image API.
435
+
436
+ Success requires observed readiness and positive intrinsic dimensions. Public
437
+ callback chains stop if a callback retires or replaces the image owner.
438
+ `onDisplay` here describes a loaded renderable Poster raster; it does not
439
+ acknowledge a physical device frame. Host fields and independent packed-consumer
440
+ callbacks are distinct from actual browser decode/failure/recovery and visible
441
+ Canvas pixels. Native event ordering and display remain device-pending.
442
+
443
+ Canvas Poster/mask replacement, source clearing, ancestor removal and disposal
444
+ detach decoder handlers and remove their source attributes. Already queued
445
+ callbacks cannot publish a retired bitmap. This is browser resource ownership,
446
+ not device decoder or HTTP-cache certification. Image cache/prefetch methods
447
+ continue to return false without an admitted native capability.
448
+
449
+ ## Text entry
450
+
451
+ The pinned NativeWind focus-style bridge keeps TextInput's focus/blur handlers
452
+ without inventing an `onPress` for its internal text display. Authored press
453
+ props remain explicit and retain their existing support boundary. Roku Metro
454
+ and esbuild use the same source-guarded correction; other platforms keep their
455
+ configured transformer unchanged. Independent Metro production/development
456
+ Node/Hermes execution and SDK compilation exercise the mounted styled field.
457
+ This does not qualify native focus styling or a new TextInput press API.
458
+
459
+ `TextInput.focus()` uses the mounted host's optional `textEntry` port, or
460
+ `DeviceServices.textEntry` when a separate port is not supplied. The SDK host opens Roku's
461
+ [StandardKeyboardDialog](https://developer.roku.com/dev/docs/standard-keyboard-dialog).
462
+ One dialog is admitted at a time. SDK and Canvas ports publish observed edits to
463
+ `onChangeText` while the dialog remains open. Controlled formatting or rejection
464
+ updates the same editor; an unchanged controlled echo preserves its draft and
465
+ revision. Programmatic updates do not manufacture input events. OK submits the
466
+ accepted text through `onSubmitEditing`, without repeating an already observed
467
+ change. Cancel/Back ends editing without submission; changes already published
468
+ to React are retained. Legacy custom ports without `subscribeText` provide only
469
+ accepted-value delivery. Blur, unmount, backgrounding and host retirement
470
+ cancel the request; stale replies cannot edit a replacement field. The bridge
471
+ limits title/text size, masks secure entry, bounds editing to ten minutes and
472
+ clears text-bearing bridge fields after delivery. Ports can also publish actual
473
+ selection through `TextEntrySession.subscribeSelection` and ordinary
474
+ `onSelectionChange`. The SDK observes the internal VoiceTextEditBox caret and
475
+ sends its actual text prefix; JS converts that prefix to UTF-16 offsets without
476
+ guessing native character units. Canvas observes DOM ranges, including cursor
477
+ movement that does not change text. Initial and programmatic positions are
478
+ reported only after reading the editor; missing observations never imply an
479
+ end-of-text cursor. Revision, sequence and lifetime fences cover both streams.
480
+ Native caret output is collapsed; programmatic selection, native ranges, inline
481
+ editing, IME parity and complete Keyboard event support remain outside this
482
+ subset. Ports without `subscribeSelection` cannot supply selection observations.
483
+ The mechanism uses documented [edit-box fields](https://developer.roku.com/dev/docs/texteditbox)
484
+ and [native event identity](https://developer.roku.com/dev/docs/rosgnodeevent);
485
+ firmware cursor behavior still requires physical qualification.
486
+ Changing a controlled `value` while its editor is active updates that same draft;
487
+ uncontrolled `clear()` and imperative text writes also update the editor without
488
+ submitting or reopening it. A rerender with the same controlled value does not
489
+ overwrite the current draft. Ports expose optional `TextEntrySession.setText`:
490
+ return true after admitting the update, or false if already closed. A missing or
491
+ failed update capability retires the request and fails explicitly. The SDK sends
492
+ monotonic draft revisions and refuses a submission from before the latest update,
493
+ while preserving the independent native-close observation. These update paths
494
+ have host contracts; actual native editing and race behavior remain unqualified.
495
+ `Keyboard.dismiss()` cancels the focused editor and is idle when none is active.
496
+ `Keyboard.addListener("keyboardDidHide", listener)` follows the port's actual
497
+ closure observation, after accepted text/submission/blur callbacks. Logical
498
+ cancellation alone, an unshown editor, a missing acknowledgement or host disposal
499
+ cannot manufacture this event. New editors and retired roots fence old callbacks.
500
+ Other keyboard events fail explicitly; modal editing supplies no IME geometry,
501
+ animation timing or will/show observations. Custom ports can provide the optional
502
+ `TextEntrySession.closed` promise: true means an observed close, false means
503
+ unconfirmed/disposed/failed admission; omit it when closure cannot be observed.
504
+
505
+ `TextEntrySession.subscribeText(listener)` returns a remover and replays the latest
506
+ observed draft to a late subscriber. SDK observations require the active request,
507
+ matching controlled revision and increasing native sequence. Canceled, replaced
508
+ and disposed sessions cannot publish edits or restore certainty through a draft
509
+ packet. Reentrant edits/control updates fence an older publication. Native
510
+ `StandardKeyboardDialog.text` observations are distinct from native closure;
511
+ neither a change nor logical cancellation fabricates `keyboardDidHide`. Host
512
+ protocol and browser input contracts remain separate from physical keyboard,
513
+ voice entry and firmware race qualification.
514
+
515
+ The SDK bridge keeps cancellation separate from closure acknowledgement. A close
516
+ without acknowledgement becomes unconfirmed after ten seconds; further editing
517
+ is refused until a matching late acknowledgement restores certainty or the host
518
+ is recreated. Native protocol v2 is private to the coordinated JS/native package.
519
+
520
+ Admitting an external text editor cancels the current JS press/long-press work
521
+ and pending background focus requests before opening its port. A reentrant
522
+ press-out/cancel callback that focuses another editor supersedes the older
523
+ attempt. Late key-up or focus-loss is not required to retire that JS work.
524
+ This cancellation does not acknowledge native dialog focus, closure or remote
525
+ delivery; those remain physical-device gates.
526
+
527
+ The default browser preview supplies `createCanvasTextEntry()` from `/preview`.
528
+ Its modal DOM editor blocks preview remote input, retains drafts locally, clears
529
+ input text on close/disposal and reports closure through the real DOM close event.
530
+ Email/numeric domains select input mechanics; shared React retains validation.
531
+ Custom Canvas hosts own and dispose this port along with their mounted root.
532
+ Physical focus restoration, masking and firmware behavior remain device-pending.
533
+
534
+ ## Navigation history
535
+
536
+ The Expo Router adapter owns a JavaScript location history. `dismissTo` returns
537
+ to the most recent identical normalized href, preserving that entry's identity;
538
+ when absent it replaces the current entry. Query ordering is normalized, and
539
+ query values cannot override consumer-resolved canonical path parameters.
540
+ Invalid navigation does not mutate the retained history. Array path parameters
541
+ are copied into immutable snapshots.
542
+
543
+ `useRouter()` stays bound to its nearest provider and keeps its identity while
544
+ that store remains the same. The module-level imperative router selects the most
545
+ recently registered live provider; retiring providers out of order cannot
546
+ resurrect an unmounted registration. Store disposal remains the consumer's
547
+ responsibility. Native navigators, transition options, relative hrefs and the
548
+ complete Expo Router API remain outside this subset. The history and provider
549
+ contracts run through the React recording renderer; physical navigation and
550
+ focus presentation still require device evidence.
551
+
552
+ Back subscriptions retain callback deduplication, last-registered priority and
553
+ consumption before older callbacks. Delivery uses the captured registrations
554
+ that still exist: removal during a newer callback retires that registration
555
+ immediately, and a replacement or newly added registration waits for the next
556
+ event. Repeating an old removal cannot remove a later registration of the same
557
+ callback. Input disposal, inactivity or an external editor retiring the current
558
+ gesture stops the remaining Back callbacks, even if input becomes active again
559
+ before the callback returns. A mounted React route/provider reproduction flushes
560
+ the original route's actual cleanup inside a newer Back callback; the removed
561
+ callback cannot navigate the arriving route. Source and independent installed
562
+ consumer checks establish these host lifetime rules. They do not claim all
563
+ upstream mutation quirks or native remote/focus timing.
564
+
565
+ Observed focus changes retain their target registration and observation order
566
+ through held-key cancellation and departing-target blur. Reentrant disposal,
567
+ route/target replacement or a newer explicit observation retires the old
568
+ continuation before it can acknowledge a successor. Removing only the departing
569
+ target still permits the live destination to receive its own observation.
570
+ Mounted router/React fixtures
571
+ check same-ID route replacement, with the successor's fresh observation
572
+ reported separately. These are host callback lifetimes, not physical focus
573
+ arrival or native event-order guarantees.
574
+
575
+ ## Device credential serialization
576
+
577
+ The SDK device-services factory uses the pinned SDK's `DeviceCrypto` device key
578
+ and native registry. New secure writes store a `pdr2:` ciphertext containing a
579
+ nonempty, versioned JSON string envelope. Empty logical strings, embedded NULs
580
+ and escaped lone surrogates round-trip without treating a zero-byte native
581
+ decryption as success. Existing nonempty `pdr1:` credentials remain readable
582
+ without a write or migration during reads.
583
+
584
+ Unknown formats, malformed ciphertext, empty native decryption results and invalid
585
+ envelopes fail explicitly. Encryption failure cannot write plaintext or flush a
586
+ replacement; registry writes retain their serialized flush/rollback contract.
587
+ The envelope validates serialization, not ciphertext authenticity or device
588
+ protection. Synthetic native-port contracts do not establish hardware key
589
+ protection, durable relaunch, interrupted-write or revocation behavior. Those
590
+ requirements remain pending native qualification.
591
+
592
+ ## Firmware web boundary
593
+
594
+ Roku's [documented fetch deviations](https://developer.roku.com/dev/docs/rsg-sdk-standing-docs-runtime-and-debugging-fetch-spec-deviations)
595
+ include absent typed feature metadata, a throwing global AbortController
596
+ constructor, case-sensitive header names and missing redirect-control fields.
597
+ The native transport captures bindings without probing them during offline
598
+ startup. It permits an absent feature-metadata function, validates required
599
+ bindings when a request is used, and requires a constructible native controller
600
+ for cancellable requests. It does not silently replace native cancellation with
601
+ a successful-looking logical cancellation. Unsupported requests fail before
602
+ network dispatch. Late responses cannot satisfy an aborted caller.
603
+
604
+ Firmware response headers are normalized before content-type checks. Binary
605
+ responses remain unsupported by the text transport and fail before decoding.
606
+ `createPortableFetch` from `/web` snapshots the transport's optional
607
+ `redirectModes` contract. Omission admits only `follow`; a verified transport
608
+ may additionally admit `error` and receives that policy on every request.
609
+ Advertising it requires preventing the hop before it occurs. Rejecting a final
610
+ response or inspecting its URL cannot undo a leaked credential. The wrapper also
611
+ rejects returned redirect statuses or changed final URLs in error mode as a
612
+ defensive check. Manual/opaque redirect handling remains unsupported.
613
+
614
+ The pinned SDK port refuses error mode independently before constructing a
615
+ native request. Its missing redirect fields cannot be enabled through a
616
+ capability declaration. `Request` construction and cloning retain policy, and
617
+ URL fragments are removed before dispatch. Embedded URL credentials and ambient
618
+ credential inclusion are rejected before dispatch. Host text-HTTP conformance
619
+ can exercise this portable layer without changing those firmware restrictions.
620
+ Final redirected URLs cannot be attested through the current firmware response
621
+ interface. These limits must be resolved or explicitly satisfied by a verified
622
+ transport before enabling an authenticated application that requires stricter
623
+ fetch semantics. A host browser's full fetch port does not prove this native
624
+ path. The SDK-host unit fixture exercises documented missing globals and late
625
+ commit/cleanup behavior; it remains a protocol/lifecycle fixture, not firmware
626
+ qualification.
627
+
628
+ ## View identity
629
+
630
+ Native View/Pressable/ScrollView refs expose ordinary `focus()` as well as
631
+ `requestTVFocus()`. Both submit native requests, without publishing an accepted
632
+ focus event. `AccessibilityInfo.setAccessibilityFocus(tag)` and
633
+ `sendAccessibilityEvent(hostInstance, "focus")` resolve the mounted tag or ref
634
+ to its owning root, independently of other roots' mount order. Both use that
635
+ same native request; they do not simulate a separate OS reader
636
+ cursor or certify accessibility traversal. Unknown/retired tags cannot select a
637
+ replacement node. Retired refs cannot measure, focus or mutate a later mount
638
+ with the same authored ID, including through a delayed font/native commit.
639
+ Only the `focus` accessibility event is implemented; other event types fail
640
+ explicitly. Committed accessibility hiding and ordinary native focus admission
641
+ still apply. A TextInput ref resolves its current backing host for tag lookup
642
+ and accessibility requests, without invoking editing `focus()` or opening its
643
+ keyboard. Its non-focusable display label does not become a separately movable
644
+ screen-reader cursor.
645
+
646
+ Focus eligibility is checked after a pending native/font commit. A retained
647
+ background ref or accessibility tag can request focus while its modal is being
648
+ dismissed, without using the previous commit's blocked placement. Committed
649
+ hidden/display-none ancestry rejects input and focus. Becoming ineligible
650
+ cancels a held press; revealing that control cannot revive the old gesture.
651
+ These mechanical fences do not select a consumer's restoration destination or
652
+ fabricate native focus observations.
653
+
654
+ An unhandled directional press with no authored `nextFocus` link uses committed,
655
+ transformed target bounds as a mechanical fallback. It prefers candidates in
656
+ the directional beam, then axis-weighted distance, with committed tree order
657
+ breaking ties. Explicit tags, null stops and shared input handlers take
658
+ precedence. Disabled, hidden, modal-excluded and zero-area targets cannot be
659
+ selected. A movement submits the same fenced native focus request as a ref;
660
+ only an actual host observation changes input ownership. This host geometry
661
+ policy does not certify physical remote latency or native presentation.
662
+
663
+ Refused focus attempts preserve a held gesture on another eligible control and
664
+ cannot supersede an earlier admitted request. Input is fenced when an eligible
665
+ native request is submitted; if its target becomes ineligible before the native
666
+ acknowledgement, the pending input fence is retired on commit. Modal and hidden
667
+ ancestry also disable native focus eligibility rather than only filtering keys.
668
+
669
+ Focus requests expire after 250 ms without a matching observation. Expiry drops
670
+ queued directions and Select gestures from that request. A fresh direction can
671
+ retry the same native ID, using the last observed origin if its blur arrived
672
+ before the missing gain. The SDK host also samples the requested and previous
673
+ native nodes for actual focus, which covers a retry on a node Roku already
674
+ focused. A later live observation can restore focus ownership. During recovery,
675
+ Select must start after an observation, since a late event for the same native
676
+ ID could belong to either request. Back cancels pending input, and retired
677
+ targets cannot deliver focus or activation. These rules apply with and without
678
+ experimental focus presentation.
679
+
680
+ `pointerEvents` retains touch hit-testing metadata independently of TV focus.
681
+ Opacity zero and accessibility exclusion do not disable a focusable remote
682
+ target; accessibility-tag focus and speech still respect accessibility hiding.
683
+ Modal isolation, `disabled`, `focusable={false}` and hidden/display-none ancestry
684
+ remain separate remote-input fences. Pointer-device dispatch is not implemented.
685
+
686
+ Absolute layout admits numeric/percentage `inset`, `insetInline`, `insetBlock`
687
+ and their start/end aliases. Explicit physical sides override shorthand;
688
+ inline aliases override start/end and top/bottom override block-edge aliases.
689
+ The current layout direction is LTR; RTL layout remains unqualified.
690
+
691
+ `createNativeRoot` and `createSceneRoot` accept opt-in `strictMode: true` for
692
+ React's development root effect/ref replay. Deferred ref and numeric-tag focus
693
+ requests retain their mounted binding generation through that replay. Modal
694
+ cleanup waits for committed retirement and suppresses replay-only dismissals.
695
+ Nested modal isolation follows hierarchical native paint order; a child's local
696
+ z-index is never compared directly with an unrelated parent's. The default root
697
+ mode remains unchanged. Host/packed development replay is separate from Roku
698
+ firmware execution and production React's behavior.
699
+
700
+ TextInput keeps one public handle for its mounted lifetime, reads the latest
701
+ controlled/accepted text on focus, and cancels its dialog on background,
702
+ replacement or retirement. Retired input handles cannot reopen the keyboard or
703
+ publish an edit. Native keyboard focus/restoration remains device-pending.
704
+
705
+ Primitives normalize RN and ARIA accessibility aliases into committed host
706
+ semantics. ARIA values override their RN aliases, including false/zero/empty
707
+ values; `role` overrides `accessibilityRole`. Pressable's explicit `disabled`
708
+ also controls its accessibility disabled state. Labels, hints, labelled-by text,
709
+ checked/mixed, `aria-pressed` toggle states, selected, expanded, disabled/busy and range/text values reach the
710
+ Audio Guide service on observed focus. A request for focus never speaks as if
711
+ focus were accepted. Changed semantics on an already announced focused control
712
+ are announced once after commit.
713
+
714
+ `aria-labelledby` uses an ordered HTML-whitespace ID reference list; commas and
715
+ nonbreaking spaces remain part of an ID. An explicit empty ARIA list overrides
716
+ the native alias. `accessibilityLabelledBy` supplies one native ID as a string or
717
+ an array of explicit IDs, without tokenizing a string. This deliberately follows
718
+ [WAI-ARIA ID reference lists](https://www.w3.org/TR/wai-aria-1.2/#valuetype_idref_list)
719
+ and the pinned React Native Web 0.21.3 HTML path for the ARIA spelling; the pinned
720
+ React Native 0.86.2-0 View implementation instead splits that spelling on commas.
721
+ It is a scoped adapter decision, not a claim that those upstream paths agree.
722
+
723
+ Relationships read direct committed label text from one exposure snapshot, in
724
+ reference order, preserving repeated references and skipping missing/empty
725
+ sources. A referenced label's own relationship is not followed again, bounding
726
+ cycles independently of tree order. Source edits, replacement and retirement
727
+ recompute the name; focused updates retain speech de-duplication. Duplicate
728
+ mounted native IDs fail explicitly before resolving a name. The host excludes
729
+ hidden and modal-background label sources consistently, including a source that
730
+ follows its consumer in the tree. This exposure profile differs from HTML's
731
+ ability to name a control from an explicitly referenced hidden element. It does
732
+ not implement the complete accessible-name algorithm or native traversal.
733
+
734
+ The committed representation also preserves authored `aria-current`,
735
+ `aria-invalid`, `aria-haspopup`, `aria-level`, `aria-orientation` and
736
+ `aria-roledescription`. The English speech profile describes these values on
737
+ observed focus, focused updates and live-region changes. Current and selected
738
+ remain independent. False/empty tokens clear current/invalid state; unknown
739
+ nonempty tokens mean true, while an unknown popup token means no popup and true
740
+ means menu. Levels require a positive safe integer; orientation is explicit.
741
+ Nonempty role descriptions replace the spoken role name only for reviewed
742
+ concrete RN/ARIA roles, retaining the underlying role. Missing, unknown and
743
+ presentational roles do not acquire a description. These rules follow
744
+ [WAI-ARIA 1.2](https://www.w3.org/TR/wai-aria-1.2/).
745
+ Field values, including secure text, are not included in these error descriptors.
746
+ Structural traversal, relationships, accessibility actions and actual native
747
+ speech remain separate requirements; this does not add a native accessibility
748
+ tree or fabricate SceneGraph properties.
749
+
750
+ Live regions suppress busy updates, de-duplicate committed messages, queue
751
+ polite updates and submit assertive updates with interruption. Hidden descendants
752
+ and the background of the top modal do not announce; modal background controls
753
+ cannot activate. A closing animated Modal retains isolation through retirement.
754
+ If an announcement port synchronously unmounts or replaces the committed root,
755
+ remaining messages from that publication retire before submission. Old delivery
756
+ cannot restore its de-duplication records over the successor. Source and packed
757
+ consumer checks exercise actual React retirement. This does not cancel
758
+ requests already submitted to a native speech queue.
759
+ These are an English speech profile and committed host semantics, not native
760
+ SceneGraph role fields or a complete OS accessibility tree. Audio Guide speech,
761
+ native dialog interference, queue cancellation after native submission, physical
762
+ traversal/order and other language profiles remain pending. Host tests and the
763
+ independent packed consumer cover props, changes, exposure and cleanup; they do
764
+ not certify firmware accessibility.
765
+
766
+ Observed Pressable focus/blur captures and bubbles through the committed native
767
+ View/ScrollView ancestry. `target` and `currentTarget` are measurable host
768
+ instances, while `nativeEvent.target` retains the numeric tag. Propagation can
769
+ be stopped; a focus command does not synthesize an event. Portalled modal controls
770
+ use their mounted ancestry, leaving background scroll hosts untouched. This is
771
+ a bounded focus-event adapter, not complete React synthetic-event support.
772
+ Consumers retain focus topology and scroll alignment policy. Physical focus,
773
+ event ordering and same-frame presentation still require device qualification.
774
+
775
+ `View.collapsable` is accepted as an optimization hint. This renderer always
776
+ retains the native group for both values, preserving refs, native IDs and
777
+ measurement when `collapsable={false}` is used. It does not implement layout-only
778
+ view removal. Host contracts verify identity and measurement across prop updates;
779
+ physical layout still needs device review. Other view props, including
780
+ `collapsableChildren`, remain subject to the compatibility registry.
781
+
782
+ ## Windowed collections
783
+
784
+ `FlatList.extraData` updates the retained window with stable data/render-function
785
+ identities. `ItemSeparatorComponent` accepts an element or a component without
786
+ props, inserted between rows and omitted after the last row (one item per row
787
+ in a single-column list). Measured rows
788
+ include separators; declared layouts must include their spacing in offsets.
789
+ `renderItem` receives a stable `separators` controller for its mounted keyed
790
+ row. `highlight`/`unhighlight` update the separator after that row and the one
791
+ before it. `updateProps('leading' | 'trailing', props)` merges consumer props
792
+ onto the selected mounted separator. Component separators receive
793
+ `highlighted` (initially false) and `leadingItem`; element separators pass
794
+ through unchanged. In a grid, `leadingItem` is the entire original row array,
795
+ and all items in that row share one controller, matching the pinned upstream
796
+ cell renderer. Replaced item objects refresh `leadingItem` while retaining
797
+ other separator state. Retired controllers cannot update a returning key.
798
+ Measured separators can change size; declared layout remains the consumer's
799
+ responsibility. Viewability callbacks remain outside this subset.
800
+
801
+ `removeClippedSubviews` is an optimization hint: native groups remain attached
802
+ inside the retained React window for both values. React windowing still unmounts
803
+ retired rows. No native clipping-performance improvement is promised. Immediate
804
+ `scrollToEnd` keeps the destination mounted until measured tail geometry has
805
+ committed, then releases the temporary anchor. The contracts exercise a thousand
806
+ items, navigation back to the start, stable refs and complete scene cleanup.
807
+ Repeated End requests use the actual committed content extent, including footer
808
+ and trailing insets, even if ScrollView's offset does not change and no new
809
+ scroll event is emitted. Four fixed seeds replay 64 bounded geometry/data/input
810
+ actions each across one/two/three columns and the horizontal lane. Minimized
811
+ alignment, removed-header, repeated-End/prepend and delayed-data regressions
812
+ also run through an independent packed consumer. These are deterministic host
813
+ contracts, not firmware timing or performance qualification.