@adelin-io/cli 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/README.md +76 -2
  2. package/authoring-release.json +174 -0
  3. package/package.json +30 -4
  4. package/runtime-integrity.json +9 -0
  5. package/scripts/adelin.mjs +7768 -0
  6. package/scripts/assemble-checkout.mjs +93 -0
  7. package/scripts/local-save.mjs +513 -0
  8. package/scripts/materialize.mjs +319 -0
  9. package/scripts/runtime.mjs +8950 -0
  10. package/scripts/typecheck.mjs +72 -0
  11. package/scripts/workspace-state.mjs +183 -0
  12. package/skill/README.md +77 -0
  13. package/skill/SKILL.md +100 -0
  14. package/skill/authoring/access.md +193 -0
  15. package/skill/authoring/analytics.md +20 -0
  16. package/skill/authoring/app-memory.md +128 -0
  17. package/skill/authoring/app-requirements.md +99 -0
  18. package/skill/authoring/app-structure.md +265 -0
  19. package/skill/authoring/assets.md +117 -0
  20. package/skill/authoring/auth.md +261 -0
  21. package/skill/authoring/content-binding.md +26 -0
  22. package/skill/authoring/i18n.md +184 -0
  23. package/skill/authoring/language.md +503 -0
  24. package/skill/authoring/local-workflow.md +1665 -0
  25. package/skill/authoring/offline/connectivity.md +50 -0
  26. package/skill/authoring/offline/example.md +102 -0
  27. package/skill/authoring/offline/history-sync.md +39 -0
  28. package/skill/authoring/offline/index.md +29 -0
  29. package/skill/authoring/offline/package-storage.md +37 -0
  30. package/skill/authoring/offline/platforms.md +35 -0
  31. package/skill/authoring/offline/startup-navigation.md +53 -0
  32. package/skill/authoring/platform-files.md +616 -0
  33. package/skill/authoring/player/casting.md +47 -0
  34. package/skill/authoring/player/controls.md +95 -0
  35. package/skill/authoring/player/downloads.md +90 -0
  36. package/skill/authoring/player/drm.md +31 -0
  37. package/skill/authoring/player/index.md +39 -0
  38. package/skill/authoring/player/live-dvr.md +33 -0
  39. package/skill/authoring/player/platforms.md +47 -0
  40. package/skill/authoring/player/playback.md +42 -0
  41. package/skill/authoring/player/tracks-subtitles.md +32 -0
  42. package/skill/authoring/profiles.md +213 -0
  43. package/skill/authoring/remote-keys.md +139 -0
  44. package/skill/authoring/search.md +27 -0
  45. package/skill/authoring/store.md +85 -0
  46. package/skill/authoring/tv-text-entry.md +146 -0
  47. package/skill/design/approved/README.md +14 -0
  48. package/skill/design/approved/vesper-phone-home.jpg +0 -0
  49. package/skill/design/approved/vesper-tv-detail.jpg +0 -0
  50. package/skill/design/approved/vesper-tv-home.jpg +0 -0
  51. package/skill/design/design-guide.md +610 -0
  52. package/skill/design/edge-to-edge.md +66 -0
  53. package/skill/design/icons.md +50 -0
  54. package/skill/design/responsive-layout.md +175 -0
  55. package/skill/design/safe-area.md +221 -0
  56. package/skill/design/streaming-playbook.md +131 -0
  57. package/skill/design/visual-review.md +150 -0
  58. package/skill/examples/README.md +24 -0
  59. package/skill/examples/cinema/DESIGN.md +58 -0
  60. package/skill/examples/cinema/app.tsx +17 -0
  61. package/skill/examples/cinema/assets/logo.png +0 -0
  62. package/skill/examples/cinema/components/Action.tsx +40 -0
  63. package/skill/examples/cinema/components/Action.tv.tsx +44 -0
  64. package/skill/examples/cinema/components/CatalogGrid.tsx +31 -0
  65. package/skill/examples/cinema/components/ContinueRail.tsx +98 -0
  66. package/skill/examples/cinema/components/Feedback.tsx +28 -0
  67. package/skill/examples/cinema/components/Field.tsx +41 -0
  68. package/skill/examples/cinema/components/LibraryRail.tsx +46 -0
  69. package/skill/examples/cinema/components/PlayAction.tsx +29 -0
  70. package/skill/examples/cinema/components/Root.tsx +59 -0
  71. package/skill/examples/cinema/components/Shell.tsx +70 -0
  72. package/skill/examples/cinema/components/Tab.tsx +22 -0
  73. package/skill/examples/cinema/components/TitleCard.tsx +68 -0
  74. package/skill/examples/cinema/components/TitleMeta.tsx +36 -0
  75. package/skill/examples/cinema/locales/en.ts +211 -0
  76. package/skill/examples/cinema/locales/lt.ts +211 -0
  77. package/skill/examples/cinema/preview/phone-home.jpg +0 -0
  78. package/skill/examples/cinema/preview/tv-detail.jpg +0 -0
  79. package/skill/examples/cinema/preview/tv-home.jpg +0 -0
  80. package/skill/examples/cinema/screens/portrait/Account.tsx +110 -0
  81. package/skill/examples/cinema/screens/portrait/Browse.tsx +73 -0
  82. package/skill/examples/cinema/screens/portrait/Detail.tsx +159 -0
  83. package/skill/examples/cinema/screens/portrait/Home.tsx +196 -0
  84. package/skill/examples/cinema/screens/portrait/Player.tsx +299 -0
  85. package/skill/examples/cinema/screens/portrait/Search.tsx +46 -0
  86. package/skill/examples/cinema/screens/portrait/Search.tv.tsx +55 -0
  87. package/skill/examples/cinema/screens/portrait/SignIn.tsx +101 -0
  88. package/skill/examples/cinema/screens/portrait/SignUp.tsx +106 -0
  89. package/skill/examples/cinema/store.tsx +132 -0
  90. package/skill/examples/cinema/theme.ts +32 -0
  91. package/skill/examples/documentary/DESIGN.md +33 -0
  92. package/skill/examples/documentary/app.tsx +17 -0
  93. package/skill/examples/documentary/components/Action.tsx +43 -0
  94. package/skill/examples/documentary/components/CatalogGrid.tsx +47 -0
  95. package/skill/examples/documentary/components/Feedback.tsx +27 -0
  96. package/skill/examples/documentary/components/Field.tsx +33 -0
  97. package/skill/examples/documentary/components/LibraryRail.tsx +47 -0
  98. package/skill/examples/documentary/components/Root.tsx +62 -0
  99. package/skill/examples/documentary/components/Shell.tsx +93 -0
  100. package/skill/examples/documentary/components/StoryCard.tsx +53 -0
  101. package/skill/examples/documentary/components/StoryMeta.tsx +22 -0
  102. package/skill/examples/documentary/preview/phone-home.jpg +0 -0
  103. package/skill/examples/documentary/preview/tv-detail.jpg +0 -0
  104. package/skill/examples/documentary/preview/tv-home.jpg +0 -0
  105. package/skill/examples/documentary/screens/portrait/Account.tsx +97 -0
  106. package/skill/examples/documentary/screens/portrait/Browse.tsx +71 -0
  107. package/skill/examples/documentary/screens/portrait/Detail.tsx +133 -0
  108. package/skill/examples/documentary/screens/portrait/Home.tsx +89 -0
  109. package/skill/examples/documentary/screens/portrait/Player.tsx +116 -0
  110. package/skill/examples/documentary/screens/portrait/Search.tsx +48 -0
  111. package/skill/examples/documentary/screens/portrait/SignIn.tsx +96 -0
  112. package/skill/examples/documentary/screens/portrait/SignUp.tsx +101 -0
  113. package/skill/examples/documentary/store.tsx +115 -0
  114. package/skill/examples/documentary/theme.ts +20 -0
  115. package/skill/examples/series/DESIGN.md +55 -0
  116. package/skill/examples/series/app.tsx +17 -0
  117. package/skill/examples/series/components/Action.tsx +42 -0
  118. package/skill/examples/series/components/CatalogGrid.tsx +43 -0
  119. package/skill/examples/series/components/ContinueRail.tsx +78 -0
  120. package/skill/examples/series/components/Feedback.tsx +26 -0
  121. package/skill/examples/series/components/Field.tsx +34 -0
  122. package/skill/examples/series/components/LibraryRail.tsx +38 -0
  123. package/skill/examples/series/components/OutcomeNote.tsx +28 -0
  124. package/skill/examples/series/components/PlayAction.tsx +29 -0
  125. package/skill/examples/series/components/RestoreAction.tsx +33 -0
  126. package/skill/examples/series/components/Root.tsx +75 -0
  127. package/skill/examples/series/components/SaveTitle.tsx +34 -0
  128. package/skill/examples/series/components/Shell.tsx +75 -0
  129. package/skill/examples/series/components/TitleCard.tsx +62 -0
  130. package/skill/examples/series/components/UnlockAction.tsx +10 -0
  131. package/skill/examples/series/preview/phone-home.jpg +0 -0
  132. package/skill/examples/series/preview/tv-detail.jpg +0 -0
  133. package/skill/examples/series/preview/tv-home.jpg +0 -0
  134. package/skill/examples/series/screens/portrait/Account.tsx +125 -0
  135. package/skill/examples/series/screens/portrait/Browse.tsx +61 -0
  136. package/skill/examples/series/screens/portrait/Detail.tsx +231 -0
  137. package/skill/examples/series/screens/portrait/Home.tsx +109 -0
  138. package/skill/examples/series/screens/portrait/MyList.tsx +44 -0
  139. package/skill/examples/series/screens/portrait/Plans.tsx +131 -0
  140. package/skill/examples/series/screens/portrait/Player.tsx +138 -0
  141. package/skill/examples/series/screens/portrait/Profiles.tsx +103 -0
  142. package/skill/examples/series/screens/portrait/Search.tsx +50 -0
  143. package/skill/examples/series/screens/portrait/SignIn.tsx +94 -0
  144. package/skill/examples/series/screens/portrait/SignUp.tsx +100 -0
  145. package/skill/examples/series/store.tsx +192 -0
  146. package/skill/examples/series/theme.ts +32 -0
  147. package/skill/guides/final-pricing-capabilities.md +13 -0
  148. package/skill/reference/api.md +842 -0
  149. package/skill/reference/components.md +1782 -0
  150. package/skill/reference/packages.md +24 -0
  151. package/skill/scripts/assemble-checkout.mjs +93 -0
  152. package/skill/scripts/local-save.mjs +513 -0
  153. package/skill/scripts/materialize.mjs +319 -0
  154. package/skill/scripts/workspace-state.mjs +183 -0
  155. package/types/adelin-access.d.ts +70 -0
  156. package/types/adelin-analytics.d.ts +5 -0
  157. package/types/adelin-assets.d.ts +26 -0
  158. package/types/adelin-auth.d.ts +37 -0
  159. package/types/adelin-content.d.ts +112 -0
  160. package/types/adelin-device.d.ts +195 -0
  161. package/types/adelin-downloads.d.ts +47 -0
  162. package/types/adelin-env.d.ts +8 -0
  163. package/types/adelin-globals.d.ts +19 -0
  164. package/types/adelin-i18n.d.ts +31 -0
  165. package/types/adelin-native-stack.d.ts +178 -0
  166. package/types/adelin-navigation.d.ts +264 -0
  167. package/types/adelin-profiles.d.ts +51 -0
  168. package/types/adelin-react.d.ts +49 -0
  169. package/types/adelin-reanimated.d.ts +376 -0
  170. package/types/adelin-storage.d.ts +9 -0
  171. package/types/adelin-store.d.ts +74 -0
  172. package/types/adelin-ui.d.ts +1518 -0
  173. package/types/adelin-utils.d.ts +7 -0
  174. package/types/adelin-worklets.d.ts +15 -0
  175. package/workspace-tsconfig.json +53 -0
@@ -0,0 +1,616 @@
1
+ # Platform files selected by the API
2
+
3
+ Read this when an app needs different navigation, controls or composition on a
4
+ specific platform. Shared screens and responsive window classes remain the default.
5
+ A tablet, split-screen or folded window does not need a separate platform file.
6
+
7
+ ## Authoring
8
+
9
+ Optional suffixes work on every screen and reusable component, including the app
10
+ root component. Each qualified file has its own stored version. Config files
11
+ `app.tsx`, `theme.ts` and `store.tsx` remain shared.
12
+
13
+ ```text
14
+ components/Navigation.tsx
15
+ components/Navigation.tv.tsx
16
+ components/Navigation.webtv.tsx
17
+ components/Navigation.tizen.tsx
18
+ components/Navigation.native.tv.tsx
19
+ components/Navigation.roku.tsx
20
+ screens/Home.tsx
21
+ screens/Home.ios.tsx
22
+ screens/landscape/Home.tv.tsx
23
+ screens/landscape/Home.roku.tsx
24
+ ```
25
+
26
+ Import the logical name without its suffix:
27
+
28
+ ```tsx
29
+ import Navigation from '../components/Navigation';
30
+ ```
31
+
32
+ All variants of Navigation must expose the same props and slot contract. Use
33
+ `export default function Navigation()` in each variant, including Navigation.tv.tsx.
34
+ Navigator route names and component references stay `Home` and `Navigation`; never register
35
+ a suffixed route name. Do not use explicit suffix imports to force a runtime implementation:
36
+ imports compile to logical references, and selection belongs to the API.
37
+
38
+ The compiler can resolve an unsuffixed import when only qualified files exist.
39
+ Provide a shared fallback when the family needs to work outside those platforms.
40
+ An unavailable referenced family makes the selected bundle incomplete; the API
41
+ refuses it instead of falling back to an unrelated platform.
42
+
43
+ ## Selection order
44
+
45
+ These are the TSX fallback orders, left to right.
46
+ `shared` means the unsuffixed file.
47
+
48
+ | Request platform | Filename suffix order |
49
+ | --- | --- |
50
+ | ios | ios → native → shared |
51
+ | android | android → native → shared |
52
+ | tvos (appletv alias) | ios.tvos → native.tvos → tvos → ios.appletv → native.appletv → appletv → ios.tv → native.tv → tv → ios → native → shared |
53
+ | androidtv | android.androidtv → native.androidtv → androidtv → android.tv → native.tv → tv → android → native → shared |
54
+ | firetv | android.firetv → native.firetv → firetv → android.tv → native.tv → tv → android → native → shared |
55
+ | roku | roku → tv → shared |
56
+ | web | web → shared |
57
+ | webos, tizen, vega, vidaa, titanos, xbox | exact vendor → webtv → web → tv → shared |
58
+
59
+ Fire TV does not implicitly select androidtv. Ordinary browsers do not select tv
60
+ or webtv. Web-TV selects web before tv.
61
+
62
+ `native` and `native.*` files are React Native only; `native.tv` is shared by the
63
+ React Native TV targets. Roku, like web TV, never selects them. Put TV code shared
64
+ with Roku in `.tv.tsx`, and use `.roku.tsx` only for real Roku differences.
65
+ Suffixes describe implementations, not extra runtime capabilities: keep using the
66
+ supported `@adelin/*` APIs.
67
+
68
+ Roku defaults to the landscape layout; explicit portrait and landscape selection
69
+ remain available. TV app requests include Roku, so apply the Roku capability profile
70
+ below. Roku support does not imply that a hosted preview or automatic store
71
+ submission is available.
72
+
73
+ ## Delivery and resizing
74
+
75
+ The companion names its platform and initial authored layout variant on resolve.
76
+ The API first chooses the portrait/landscape catalog, then resolves screens and
77
+ components to one bundle under their logical names. The response contains the
78
+ selected definitions inline; no unselected bodies or orientation bundle URLs reach
79
+ the companion. Draft cache validators include revision, platform and layout.
80
+
81
+ The target stays fixed for a launch. Rotation and fold/unfold update reactive
82
+ `useWindowDimensions` and reflow the existing tree, preserving route and form state.
83
+ Read [responsive-layout.md](../design/responsive-layout.md) for stable content slots and TV scaling. Platform files
84
+ are for platform differences; avoid separate copies of the same responsive layout.
85
+
86
+ Native `SlidingText` with `disabled` or `marqueeOnMount={false}` uses its authored
87
+ text box, line limit and ellipsis in either focus state. Its settled form uses the
88
+ native uncapped system text-size default.
89
+
90
+ ## Roku capability profile
91
+
92
+ Roku runs the same compiled app in its own interpreter, not React Native. Keep
93
+ shared source as the authority for behaviour. An
94
+ unsupported construct anywhere in the app, including inactive branches, refuses the
95
+ whole app with a diagnostic naming the construct and its path, so stay inside this
96
+ profile when an app targets Roku:
97
+
98
+ - Layout: views, text, images, linear gradients, a small loading indicator,
99
+ flex with row/column reverse directions, wrapping in either direction, item and
100
+ multiline alignment, baseline alignment, spacing modes and auto margins.
101
+ Basis/grow/shrink follow the native two-pass allocation; positive flex grows,
102
+ negative flex shrinks, and an explicit shrink value overrides that default.
103
+ Images accept a bounded HTTPS `source` string or `{uri}` object. A supplied
104
+ `src` takes precedence over `source`, including an empty string. An omitted,
105
+ null or empty main source clears the foreground when no `defaultSource` is set.
106
+ Image `width`, `height` and `borderRadius` props supply values when the style
107
+ omits those keys. Explicit style values, including null or undefined clears,
108
+ override the props. Omitted dimensions follow container layout rather than
109
+ reserving the source's intrinsic size.
110
+ `resizeMode` accepts `cover`, `contain`, `stretch`, `center` and `none`;
111
+ `contentFit` accepts `cover`, `contain`, `fill`, `scale-down` and `none`.
112
+ `contentFit` overrides the resize prop, which overrides style `resizeMode`.
113
+ Style `repeat` falls back to cover; it does not tile the source. Style `objectFit`
114
+ is inactive. Center/scale-down preserve small sources without enlarging them.
115
+ None centers the current decoded bitmap and clips overflow; changing only the
116
+ fit retains that bitmap's initial decoded size. Other source schemes remain
117
+ unsupported. Source, requested and effective fitted decode dimensions
118
+ remain capped at 2048 pixels per axis, within shared image memory limits.
119
+ `defaultSource` accepts the same bounded source forms and displays when the main
120
+ source is blank. A failed replacement retains its preceding ready image.
121
+ Ordinary loads call `onLoadStart`, then `onLoad` or `onError`, then `onLoadEnd`;
122
+ a blank main with a placeholder starts without reporting a main completion.
123
+ Load payloads contain the original URL and dimensions and the actual cache tier.
124
+ These settled PNG cases do not establish support for every image format or
125
+ pending/recycled-image transition.
126
+ Flex basis accepts numbers, numeric strings, percentages, `auto`,
127
+ `max-content`, `fit-content` and `stretch`. Width/height and their minimum and
128
+ maximum constraints accept finite numbers, numeric strings, percentages, `auto`,
129
+ null and the same intrinsic keywords. Numeric strings retain native units;
130
+ numeric values scale with the canvas. Aspect ratio accepts numbers, numeric
131
+ strings, slash ratios and `auto`; native flex allocation derives the cross size.
132
+ Roku applies changed static flex basis values. Current Android native builds can
133
+ retain the previous basis; use width/height for shared focus resizing when needed.
134
+ `border-box` and `content-box` include padding and border floors and constraints.
135
+ Display accepts `flex`, `none` and `contents`. Hidden subtrees reserve no space,
136
+ paint or focus while retaining component state. Contents removes the host box and
137
+ paint and promotes descendants into the enclosing layout while retaining their
138
+ logical owners. Zero-size boxes can paint visible-overflow descendants.
139
+ Overflow accepts `visible`, `hidden` and `scroll`; hidden and scroll clip content.
140
+ Scroll changes intrinsic main-axis measurement without creating a scroll control.
141
+ Image styles accept only visible and hidden overflow.
142
+ Images preserve border paint around their full-frame foreground fitting.
143
+ Physical padding and margins support all/axis/side precedence and style arrays,
144
+ finite numbers, numeric strings and percentages. Vertical percentages use the
145
+ containing width. Auto margins distribute free space; auto and negative padding
146
+ resolve to zero, while negative margins retain their sign.
147
+ Static, relative and absolute positioning accept physical offsets as finite numbers,
148
+ numeric strings, percentages, `auto` or null. Relative offsets preserve flow space;
149
+ absolute children leave flow and skip static ancestors for explicit insets. Percentage
150
+ absolute lengths use the containing content size; both-edge auto dimensions use its
151
+ border box. Without insets, immediate-parent alignment applies outside its padding.
152
+ Auto-only insets retain native defined-inset translation through static ancestors.
153
+ Direction accepts `inherit`, `ltr` and `rtl`; an unspecified root uses the LTR
154
+ environment. It reverses row flow and column cross alignment without changing
155
+ logical focus ownership. Direction inherits through scroll content and newly
156
+ expanded virtual cells; direction
157
+ replacement remeasures retained cells. RTL list ordering and scroll offsets still
158
+ require their composite-specific acceptance. Logical start/end and inline/block
159
+ inset, margin and padding aliases follow native precedence: inline edge aliases override start/end,
160
+ logical edges override physical sides, and block-start/end aliases yield to
161
+ explicit top/bottom. Distinct property names keep that precedence across style
162
+ arrays. Flattened contents hosts do not supply layout direction. The current
163
+ shared TV scaling policy scales numeric marginStart/End and paddingStart/End;
164
+ numeric start/end and inset/inline/block aliases retain native units. Numeric
165
+ strings and percentages retain native units on every edge. This describes layout
166
+ in the unchanged LTR app environment, not bidi text shaping or locale switching.
167
+ Wrapped cross-axis placement follows native multiline alignment, including its
168
+ near-inset-only flex-start rule and wrap reversal. Filters remain outside this
169
+ profile. Rounded clipping is supported. Text uses bundled Roboto upright and italic
170
+ faces. With `fontFamily` omitted, `fontWeight` accepts multiples of 100 from 100
171
+ through 900, their numeric strings, `normal` and `bold`; `fontStyle` accepts `normal`
172
+ and `italic`. Explicit `Roboto` and `sans-serif` families follow Android TV
173
+ named-family selection: weights below 700 use the 400 face; weights from 700
174
+ use the 700 face, preserving italic. `serif` uses genuine Noto Serif regular,
175
+ bold, italic and bold italic faces with the same nearest 400/700 selection.
176
+ `monospace` uses Droid Sans Mono with the same nearest 400/700 selection;
177
+ ordinary and inline Text support native synthetic bold, italic and bold italic
178
+ within the existing glyph-raster limits. Wrapped ordinary and inline paragraphs
179
+ support signed ASCII tracking with left, center or right alignment within those
180
+ limits. Inline spans preserve their own font,
181
+ size and color, including alpha. Styled monospace TextInput remains refused. Other nonempty family names use the bundled
182
+ Roboto fallback with the same nearest 400/700 and italic selection. This provides
183
+ default fallback, without loading custom fonts or reproducing a named system face.
184
+ Empty names and nonstring values are refused.
185
+ At zero letter spacing, the glyph profile includes Latin and common Greek and
186
+ Cyrillic spacing letters present in the bundled faces. Canonically decomposed
187
+ accents that form one supported letter compose for measurement and painting;
188
+ runtime text values stay unchanged. Decomposed monospace text can have small
189
+ glyph and width differences from Android. Standalone, noncomposable or stacked
190
+ marks and accents split between styled leaves remain outside this profile.
191
+ CJK, emoji and complex accent attachments are explicitly unsupported on Roku.
192
+ Broader font and character handling is deferred.
193
+ Changing the face updates intrinsic measurement and
194
+ adjacent layout. Wrapping, line height, letter
195
+ spacing, left/center/right text alignment and truncation are supported. Negative
196
+ letter spacing preserves signed glyph positions and overlap within the existing
197
+ tracked ASCII shaping and resource limits; omission restores zero spacing.
198
+ `numberOfLines={0}` leaves lines unlimited. `ellipsizeMode` accepts `tail`
199
+ (the default) and `clip`; clip removes hidden lines without adding an ellipsis.
200
+ `head` and `middle` support a single visible line, using the first paragraph
201
+ when text contains explicit line breaks. With multiple visible lines, they clip
202
+ without an ellipsis. A trailing line break alone does not add an ellipsis.
203
+ `adjustsFontSizeToFit` attempts to fit text to its width, line limit and definite height,
204
+ disables ellipsis while enabled, and restores the authored size when false or
205
+ omitted. `minimumFontScale` is iOS-only and has no effect on Roku or Android TV;
206
+ its accepted numeric range is 0.01–1.
207
+ If the minimum font size still cannot fit, the remaining glyphs are clipped.
208
+ Text defaults to hidden overflow; explicit visible overflow is preserved.
209
+ Boxes narrower than one glyph clip that glyph, or the ellipsis when truncating.
210
+ `allowFontScaling={false}` disables the text context scale.
211
+ `maxFontSizeMultiplier` accepts `null` or `0` for no cap, or a finite number at
212
+ least 1; omission and `undefined` use the TV default of 1.2. Changes and removal
213
+ update the current text request. System accessibility text sizing follows each
214
+ platform: Expo preserves native Android TV scaling, including nonlinear font
215
+ and line-height enlargement; Roku currently renders at normal text scale 1.
216
+ Enlarged system text is an accepted platform difference.
217
+ Arabic/Hebrew shaping and bidirectional text remain explicitly unsupported,
218
+ including mixed text that contains those scripts.
219
+ `textDecorationLine` values `underline`, `line-through`, and
220
+ `underline line-through` paint per measured line; `none` removes them.
221
+ `textDecorationColor` is independent of glyph color, with transparent black
222
+ restoring the foreground color. `textDecorationStyle` accepts `solid`, `double`,
223
+ `dotted`, `dashed` and `wavy`. Solid underlines follow wrapped and truncated runs.
224
+ Patterned lines support single-line head, middle, tail and clip truncation,
225
+ including glyph shadows. Tail dots are excluded from the measured decoration
226
+ span; wavy strokes complete their final full cycle, matching Android.
227
+ Wavy curvature and edge antialiasing can differ slightly between TVs.
228
+ Text shadows accept a nonnegative numeric `textShadowRadius`, a signed numeric
229
+ `{width, height}` `textShadowOffset`, and `textShadowColor`. Positive radii paint
230
+ a glyph-shaped shadow; zero or omitted radius paints none. An omitted color uses
231
+ translucent black; alpha-zero colors suppress the shadow. Offset and radius remain
232
+ unscaled by the app's design factor. Blur rasterization can differ slightly between
233
+ platforms and uses the existing bounded raster resource lane.
234
+ Direct Text `onPress` and `selectable` are inactive on TV. Put remote actions on
235
+ an enclosing `Pressable`. Text style `userSelect` accepts `auto`, `text`, `none`,
236
+ `contain` and `all`; these do not add a D-pad focus target or selection UI.
237
+ This TV remote behavior does not provide pointer selection or clipboard actions.
238
+ `textTransform` applies before measurement and paint. Latin `capitalize` handles
239
+ punctuation, repeated punctuation, numeric words and underscores. Interior
240
+ periods, apostrophes and middle dots preserve casing when they join letters or
241
+ numbers; leading digits or underscores keep later letters unchanged.
242
+ Casing results must remain within the supported glyph profile. Locale-sensitive
243
+ casing and broader scripts remain unqualified.
244
+ Text vertical alignment accepts `auto`, `top`, `center` and `bottom`; a non-null
245
+ `verticalAlign` (`auto`, `top`, `middle` or `bottom`) overrides `textAlignVertical`
246
+ after style arrays are flattened. `includeFontPadding` accepts booleans and
247
+ defaults to true after removal. `writingDirection` accepts `auto`, `ltr` and `rtl`
248
+ without changing text direction, matching the Android TV host; this does not add
249
+ bidi shaping or broader script support.
250
+ Nested Text supports ordered Latin and common Greek/Cyrillic text leaves with
251
+ inherited typography and
252
+ per-leaf `fontSize`, `fontWeight`, `fontStyle`, `fontFamily`, `color`,
253
+ `textTransform`, signed `letterSpacing` and `lineHeight` overrides. Leaves share
254
+ paragraph wrapping without reserving child layout boxes. Nested line height
255
+ follows Android's paragraph spans: it can affect all lines, and an earlier
256
+ inherited value can take precedence. Nested `textAlign` on the first nonempty
257
+ text fragment sets paragraph alignment; later fragments retain that alignment.
258
+ Nested `textDecorationLine`, `textDecorationStyle` and `textDecorationColor`
259
+ affect only their text range; `none` clears inherited decoration on that range.
260
+ An unpainted inherited font does not
261
+ reserve a larger line box. An oversized first glyph keeps its natural
262
+ width and clips within a narrow paragraph while subsequent glyphs wrap.
263
+ Oversized words wrap across lines while retaining their leaf fonts and colors.
264
+ Nested `selectable`, `onPress` and valid
265
+ leaf `userSelect` are also inactive on TV; they retain inherited typography without
266
+ adding a remotely focusable or pressable span. Other nested props are refused.
267
+ Paragraph-level text shadows follow each inline leaf's font and position,
268
+ including wrapped paragraphs, offset/color changes, removal and restoration.
269
+ Nested `textShadowColor`, `textShadowRadius` and `textShadowOffset` override
270
+ inherited shadow properties on their text range. A zero leaf radius disables
271
+ that range's shadow; omitted leaf properties inherit the paragraph shadow.
272
+ Paragraph decorations follow mixed-font line widths and baselines, including
273
+ wrapped lines and the stroke styles described above. Paragraph `numberOfLines`
274
+ supports tail ellipsis (the default), explicit `ellipsizeMode="clip"` and
275
+ single-line head/middle ellipsis; multi-line head/middle clips without an
276
+ ellipsis. Omission restores unlimited layout. The
277
+ ellipsis retains the affected leaf's font and color. An ellipsized line keeps
278
+ metrics from the text it replaces. Single-line head/middle
279
+ uses the first explicit paragraph. Paragraph `adjustsFontSizeToFit` searches
280
+ the inherited and overridden leaf sizes together with a native 4 dp
281
+ minimum. Explicit line heights remain fixed; disabling fitting restores authored
282
+ sizes. Impossible constraints retain minimum-size clipping. Inline attachments,
283
+ interactive spans and other leaf styles remain refused.
284
+ - Roku supports the settled `SlidingText` form described above. Moving marquee
285
+ configurations are refused.
286
+ - Static transforms preserve layout reservation while moving the complete visual
287
+ subtree and its directional focus bounds. Use ordered translate, rotate/rotateZ,
288
+ scale, scaleX and scaleY operations, CSS strings using those operations, or affine
289
+ 9/16-element matrices. Angles accept degrees and radians. Numeric array translateX/Y values
290
+ scale with the canvas; CSS, translate tuples, matrix translations and numeric
291
+ transform origins retain native units. Percent translations and origins use the
292
+ host dimensions. Transform origins accept strings or three-element arrays.
293
+ Reset with `transform: []` and `transformOrigin: ['50%', '50%', 0]`.
294
+ Roku simplifies named skew to native rectangular paint while retaining transformed
295
+ child positions; use unskewed artwork when the parallelogram shape is essential.
296
+ Ordinary matrix transforms follow Android's decomposed affine presentation.
297
+ View containers apply hidden backfaces; Text and Image retain their source host's
298
+ inactive backface behavior. General 3D matrices, multiple nonzero X/Y rotations
299
+ and Z translation remain unsupported. A single nonzero rotateX/Y uses an
300
+ orthographic projection; positive perspective values omit projective division,
301
+ and focus bounds follow the simpler visible shape. Rotated Image foregrounds
302
+ can cover parts of their inset borders; use an untransformed outer container
303
+ when that border is essential.
304
+ - Borders accept finite nonnegative numeric all/physical/start/end widths, and
305
+ uniform, physical, start/end and block colors, including transparent and resets.
306
+ Widths affect content insets, minimum box size, absolute positioning and focused
307
+ list-cell reflow. In the native LTR app environment, local RTL changes layout
308
+ while border paint retains native LTR edge resolution. Text paints uniform and
309
+ physical colors; its start/end and block color declarations are inactive.
310
+ Solid, dashed and dotted borders follow Android's rectangular and rounded color
311
+ and uniform-border branches; mixed colors can render as solid edges. See the
312
+ [style reset guidance](language.md#components-and-styles) for explicit solid resets.
313
+ - Corner styles accept nonnegative numeric uniform and physical radii on View,
314
+ Text and Image, plus the eight logical aliases on View and Image. Text's logical
315
+ radius aliases are inactive on Android, including percentage values. Two-axis logical names take precedence
316
+ over older logical names, physical names and the uniform radius; null reveals
317
+ the next fallback and zero remains explicit. Numeric uniform/physical radii scale
318
+ with TV layout; numeric logical radii retain native units. View percentages form
319
+ ellipses using both host dimensions, with adjacent-corner overlap fitting and
320
+ the same border-aware child clipping. Use numeric radii for Image and for Text's
321
+ physical/uniform corners: percentage strings reach numeric native setters and
322
+ receive explicit diagnostics on Roku. Local RTL retains the native LTR corner paint environment.
323
+ `borderCurve: 'circular' | 'continuous'` is admitted but inactive on these Android
324
+ hosts; it does not select a different Roku corner renderer.
325
+ - Static outlines on View, Text and Image accept a nonnegative numeric
326
+ `outlineWidth`, signed numeric `outlineOffset`, `outlineColor` and
327
+ `outlineStyle: 'solid' | 'dashed' | 'dotted'`. They paint around the border
328
+ without reserving layout space, beneath foreground content. Fresh hosts default
329
+ to black, solid, zero offset and zero width. On the same mounted host, clearing
330
+ or omitting color or pattern retains its last explicit value, including values
331
+ set while width is zero. Specify a replacement color or pattern explicitly;
332
+ use `outlineWidth: 0` to remove the outline. New logical bindings start with
333
+ the defaults. Outline work shares the bounded paint resources; dash phase and
334
+ corner details can differ between TV platforms.
335
+ - Static `opacity` accepts values from 0 to 1. View and Text reduce each paint's
336
+ alpha; an Image's own background and content can blend differently at fractional
337
+ opacity across TV targets. `zIndex` supports negative, zero and positive integer
338
+ paint order on positioned hosts. Positive elevation breaks equal-index ties;
339
+ otherwise equal indices retain authored order. Static hosts
340
+ ignore the index. Ordinary View descendants can paint across a layout-only or
341
+ painted parent; parent opacity, clipping or an explicit positioned `zIndex: 0`
342
+ keeps them within that parent's stacking boundary. List cells retain their own
343
+ boundary. Focused Pressables use index 1. Paint order does not change logical
344
+ remote navigation or Select ownership.
345
+ - Static `isolation: 'isolate'` on View keeps descendant paint order inside that
346
+ View; `auto` or omission allows the usual descendant ordering. It does not
347
+ create a containing block or change layout and focus order. Text keeps its
348
+ Android paragraph behavior; Image already has its own paint-order boundary.
349
+ `filter` and `mixBlendMode` are explicitly unsupported on Roku, including
350
+ their reset forms. Ordinary opacity and isolation do not provide subtree
351
+ filtering or backdrop blending.
352
+ - Static `boxShadow` accepts CSS strings and object arrays with signed offsets,
353
+ blur, spread and inset layers. Earlier shadows of the same category paint above
354
+ later ones; inset paint stays below content. String pixel lengths scale with the
355
+ canvas, while object lengths retain native units. A malformed layer clears the
356
+ entire list; use `boxShadow: []` to reset. Positive `elevation` casts an outer
357
+ shadow and affects equal-index paint order. View and Text use `shadowColor` to
358
+ tint it; Image ignores the legacy shadow color. Legacy `shadowOffset`,
359
+ `shadowOpacity` and `shadowRadius` do not alter these Android TV host shadows.
360
+ Minor differences in blur and softness are expected across TV targets.
361
+ Expanded halos and layers share bounded paint work and memory; large or complex
362
+ effects can be refused explicitly.
363
+ - Static gradient backgrounds follow the [background style contract](language.md#background-styles)
364
+ on Roku View hosts:
365
+ CSS and structured linear/radial layers, with layered size, position and repeat
366
+ controls.
367
+ Minor platform differences in color, antialiasing and subpixel edges are expected;
368
+ tile placement, repeat behavior and controls must match. Current Android Text and
369
+ Image hosts do not paint their inherited gradient declarations. Use a View wrapper
370
+ for a gradient backdrop around text or images. On Android, `cover`/`contain` clear
371
+ size output and an auto axis preserves both original tile dimensions. Public
372
+ gradient components remain outside this profile.
373
+ - Remote interaction: `pointerEvents` styles accept `auto`, `none`, `box-only` and
374
+ `box-none`; they preserve logical D-pad focus and Select on nested TV controls.
375
+ These modes describe pointer hit testing on Android, which Roku does not provide.
376
+ `cursor` accepts `auto` and `pointer` with no Android TV or Roku remote effect.
377
+ Both styles may change with focus without initiating layout on their own. This
378
+ does not establish touch, mouse, hover or tvOS behavior; shared spacing rules still apply.
379
+ - Text input accepts `autoCorrect={false}`. The Roku keyboard does not offer autocorrection.
380
+ - Modals: `visible` defaults to true. `transparent` overrides both `backdropColor`
381
+ and the container's background; otherwise `backdropColor` overrides that background,
382
+ which defaults to white. Screen `zIndex` cannot paint above an open Modal.
383
+ Modal styles apply to the full native-window container,
384
+ outside the declaring view's flow and clipping. The top visible modal owns logical
385
+ focus and Back; closing restores its opener, or a surviving nearby control.
386
+ `onShow` runs after publication and when an open covered route is presented again;
387
+ Back calls `onRequestClose` without closing automatically. `onDismiss` is inactive,
388
+ matching Android TV. `presentationStyle` accepts `fullScreen`, `pageSheet`,
389
+ `formSheet`, and `overFullScreen`; these and orientation/swipe/system-bar options
390
+ do not provide iOS sheets or system chrome on Roku. `animationType` accepts `none`,
391
+ `fade`, and `slide` with settled-state presentation; authored trajectories remain
392
+ unavailable. Changing it starts a new show lifecycle. Exact callback parity for
393
+ the first live window-prop update is unresolved; close and reopen a modal to
394
+ change its window options.
395
+ Declare Modal beside collections rather than in virtualized cells or reusable
396
+ collection templates; bind its visibility and selected item through the surrounding
397
+ component's state. Visible modals discovered during late or staged collection
398
+ expansion are refused explicitly; that integration is not supported yet.
399
+ - Controls: `Button` supports `title`, explicit children, `primary`, `secondary`
400
+ and `ghost` variants, static styles and the supported `Pressable` focus and
401
+ callback props. Explicit children take precedence over the title. Without a
402
+ custom `focusAnimation`, TV focus scales the button to 1.05 and draws its
403
+ outside white outline. Disabled buttons dim and cannot receive focus or Select.
404
+ `Switch` supports controlled `value`, `onValueChange`, `disabled`, `trackColor`,
405
+ `thumbColor` and `accessibilityLabel`. Select requests the opposite boolean once;
406
+ the owner must update `value` to change its paint. Its fixed TV geometry and
407
+ default paint follow the native Android TV switch, with a logical focus outline.
408
+ Switch styles, `focusKey`, iOS-only paint and other native props are unsupported
409
+ on Roku. Use a surrounding view for positioning and spacing.
410
+ - Icons: `Icon` accepts `icon`, `size` and `color`. Use shared licensed `ph`,
411
+ `lucide` and `mdi` names, literal glyph strings, or an HTTPS bitmap URI object.
412
+ Size is 1–512 canvas units and scales once; URI images preserve aspect ratio
413
+ and use source-in tint, including black or partly transparent source pixels.
414
+ Named loading reserves a blank size box; named failure displays `?`, while
415
+ URI failure stays blank. Position the icon with a surrounding view; Icon
416
+ styles and children are unsupported. Named resources use bounded native SVG
417
+ paths, shapes, fills, strokes and transforms, including nested group opacity
418
+ and overlapping fill/stroke. Shape opacity multiplies each paint's opacity,
419
+ matching the Expo Android TV SVG renderer. Paint accepts
420
+ currentColor, hexadecimal, CSS named colors and the shared normalizer's
421
+ rgb/rgba, hsl/hsla and hwb forms. Unsupported paint servers, attributes,
422
+ elements and malformed numeric values fail explicitly. Resource work and caches are bounded
423
+ and disposed with the current navigation or recycled-cell owner.
424
+ - SVG resources: `Svg` accepts `uri`, `width`, `height` and `fill`. Use HTTPS or
425
+ percent-encoded `data:image/svg+xml` URIs, optionally with a charset; base64 is
426
+ unsupported. Dimensions accept nonnegative numbers, numeric strings and
427
+ percentages; omitted dimensions default to zero rather than intrinsic size.
428
+ Position the component with a surrounding view; styles and children are unsupported.
429
+ A fill override rewrites explicit double-quoted fills except `fill="none"`;
430
+ it preserves absent fills and strokes. Initial loading, an initial null URI
431
+ and invalid XML contribute no layout host. Changing the URI retains the current
432
+ source while fetching, after network rejection or when cleared. Width, height
433
+ and fill changes repaint that source even while fetching. HTTP error response
434
+ bodies are parsed too: valid SVG renders; invalid XML removes the host.
435
+ The shared SVG painter supports bounded paths, shapes, strokes, transforms and
436
+ group opacity. Physical-unit dimensions, paint servers and unsupported SVG
437
+ nodes or attributes are refused. Source size, raster time, memory and owner
438
+ caches are bounded; large or complex resources can fail within these limits.
439
+ - Focus and lists: grouped directional focus, preferred focus, scroll views with
440
+ stable item keys, and the shared TV focus scale and border. `Screen` supports
441
+ `focusKey`, `foreground` and directional `exits` to another screen's focus key;
442
+ background screens cannot receive logical focus. `FocusGroup` supports
443
+ `focusKey`, `direction`, `remember`, `autoFocus` and `trap`. `Pressable` supports stable
444
+ `focusKey`, `disabled`, `hasTVPreferredFocus`, `onFocus`, `onBlur` and
445
+ `onLongPress`. Disabled controls cannot receive focus.
446
+ `Pressable` and `TextInput` accept a `style` function. Use `focused` to change
447
+ `backgroundColor`, `borderColor`, `opacity`, border geometry, padding, margins,
448
+ dimensions and flex layout. Siblings reflow when the focused box changes.
449
+ Focus-dependent flex basis currently differs from React Native's live updates;
450
+ use width or height for matching focused sizing.
451
+ `TextInput` also accepts a focus-dependent `color` and uses the authored style
452
+ in place of its default focus border. Font metrics must stay consistent across
453
+ focus states. Use a style array with named base and focused styles.
454
+ Focus is logical: ordinary controls and the custom TV keyboard keep the scene
455
+ as the native key receiver. A move to a preparing item keeps the source focused
456
+ until the target is ready. New movement, navigation or replacement supersedes
457
+ older work; removed, failed, disabled or focusless targets settle through recovery.
458
+ Remembered targets on Back use the same readiness rules. Elapsed time alone does
459
+ not redirect a valid pending move.
460
+ Scroll indicator props accept only `false`; native list indicators are not rendered.
461
+ `onBlur` runs while the previous control is current; the new control becomes
462
+ current before its `onFocus`. Both public callbacks receive `null`. Initial
463
+ focus is delivered once when the control is presented. State updates while the
464
+ same logical control remains focused do not fire another `onFocus`. A callback that navigates
465
+ or replaces a control invalidates older continuation work, so do not depend on
466
+ a retired target receiving `onFocus`. An arrow accepted after navigation is
467
+ already pending can still update the outgoing screen's remembered target.
468
+ Select activates `onPress(null)` once on down when there is no long handler.
469
+ With `onLongPress`, a short press activates on release; holding Select invokes
470
+ `onLongPress(null)` once and suppresses the short activation. The hold threshold
471
+ is described in [Pressable controls](remote-keys.md#pressable-controls). Consumed keys,
472
+ repeated down events and a retired down owner cannot activate a different
473
+ control on release or hold. Authored `focus(...)` actions are unsupported on Roku;
474
+ use the supported preferred-focus, grouping and navigation contracts.
475
+ These logical callbacks do not establish system accessibility or screen-reader
476
+ support; test remote interaction and visible feedback in the actual app.
477
+ `FlashList` works
478
+ horizontally, vertically and as a `numColumns` grid, with `style`, `gap`, `rowGap`,
479
+ `columnGap`, `contentContainerStyle`, `estimatedItemSize`, header, footer and empty
480
+ components, `onEndReached`, `onEndReachedThreshold`, `initialScrollIndex`,
481
+ `focusEntry`, `focusScale`, `viewportOffset`, `scrollPaddingStart`,
482
+ `perfConfig.overscan`, and scroll indicators set to `false`. Lists of any length
483
+ scroll. `ItemSeparatorComponent` is supported written as an element: an inline view,
484
+ or a component written as an element such as `ItemSeparatorComponent={<Separator />}`.
485
+ The `Chips` and `Carousel` blocks are supported, and so is a vertical `FlashList`
486
+ whose rows each hold a horizontal `FlashList`. Roku `Carousel` supports horizontal
487
+ and vertical layouts, positive explicit item `width` and `height`, `style`,
488
+ `contentContainerStyle`, and settled `normal`, `parallax`, `horizontal-stack` and
489
+ `vertical-stack` poses with their `modeConfig` options. These are static poses;
490
+ motion props are not implemented. Without an explicit horizontal item height,
491
+ the carousel retains the tallest included item measured during that mount.
492
+ Without an explicit vertical item height, the measured pager allocation sets the
493
+ page extent; an item's authored height remains independent of that extent.
494
+ For vertical carousels without an explicit item height, item content and initial
495
+ progress wait for a positive measured page extent.
496
+ Returning to zero unmounts that content; a later positive extent mounts it fresh.
497
+ The outer ref remains available while the extent is zero, and its index read
498
+ returns the rounded and clamped `defaultIndex`.
499
+ A positive integer `windowSize` limits mounted items. An outgoing visible item can
500
+ remain mounted while a pending start callback reconciles the next window.
501
+ `defaultIndex` rounds and clamps to the data range on mount. Nonempty unique string
502
+ item keys preserve card state across reorder and keep the active key when possible;
503
+ removing it clamps the active index. `loop` defaults to `false`; with it enabled,
504
+ dot navigation wraps at either end. `autoFillData` defaults to `true` and can create
505
+ separate stateful copies when looping.
506
+ `focusMode="content"` registers only the active item's controls. `focusMode="card"`
507
+ lets focus select a card, preserving its nested control memory and revealing it
508
+ through enclosing scroll views. Both modes support `focusEntry="first"` and
509
+ `focusEntry="remember"`. In filled loops, card focus registers the nearest copy
510
+ of each item. Default dots appear below
511
+ horizontal content and to the right of vertical content. Focusing a dot selects its page; selecting it
512
+ again does not repeat the active-index callback. Pagination appears for multiple cards;
513
+ an empty carousel shows “No items”. Default dots use the theme's primary color
514
+ when selected and textMuted or partially transparent text otherwise, with an 8-unit
515
+ diameter, 8-unit gap and 1.6 focus scale. `pagination={false}` hides the dots;
516
+ an object customizes `position` (`top`, `bottom`, `left` or `right`), `overlay`,
517
+ `dotSize`, `gap`, `color` and `activeColor`. Overlay dots sit 12 scaled units
518
+ inside the selected edge. A `CarouselRef` binds its current mounted Carousel;
519
+ `getCurrentIndex()` reads its index, including 0 for an empty Carousel. Unmounting
520
+ clears that ref; optional reads then return `undefined`.
521
+ Do not generate `next`, `prev` or `scrollTo` calls for Roku; their command
522
+ endpoints and callback lifetimes are not yet fully qualified.
523
+ `Carousel` reports settled pages through `onActiveIndexChange`. Roku commits synchronous
524
+ component-state updates from that callback together with the settled dots, content
525
+ and layout; later effects and asynchronous updates settle normally. Any other
526
+ `FlashList` prop refuses the app, including `testID`, `onLayout` and accessibility
527
+ props, and `SectionList` refuses the app.
528
+ - Navigation: native stack `navigate`, `push` and `goBack`, authored Back
529
+ subscriptions, the app's root `onBack`, and the navigator's `fade` or `default`
530
+ animation, set in `screenOptions` as an object or a `({ route }) => ({ ... })` function.
531
+ - State: type annotations on `useState` and `useRef` are supported and do not change
532
+ runtime values. Component state, effects, timers, store slices and data thunks behave as
533
+ on other targets.
534
+ - Expressions: Supported: Roku evaluates the expression language the compiler accepts,
535
+ including `===`, `!==`, `==`, `!=`, `<`, `<=`, `>`, `>=`, `!`, `&&`,
536
+ `||`, `??`, ternaries, `typeof`, `in`, `as`, `satisfies` and `!` assertions, property
537
+ and index reads (built-in methods such as `list.map` read as function values), `.length`, `+`, `-`, `*`, `/`, `%`, template literals, object and
538
+ array literals with spread, destructuring (including `...rest`), `String(x)`,
539
+ `Number(x)`, unary `+`, `parseInt`, `parseFloat`, `isNaN`, `isFinite`, the
540
+ `Number.isNaN`, `Number.isFinite`, `Number.isInteger`, `Number.isSafeInteger`,
541
+ `Number.parseFloat` and `Number.parseInt` checks, `toFixed` on numbers, every
542
+ `Math` function (`Math.round`, `Math.max`, `Math.sqrt`, `Math.sin`, `Math.pow`,
543
+ `Math.random` and the rest), error values from `new Error(...)`, `TypeError`,
544
+ `RangeError`, `ReferenceError` and `SyntaxError` with their `message`, `name`,
545
+ `cause` and `stack`, `Object.keys`, `Object.values` and `Object.entries`, Reanimated's
546
+ `interpolate` and `interpolateColor` (RGB, HSV and LAB) and its `contrastColor`,
547
+ `convertToRGBA` and `isColor` helpers in values, objects with their own `toString`
548
+ or `valueOf` functions turned into text or numbers, calls to your own helper
549
+ functions, JSX values (JSX passed as props or stored in variables, including
550
+ `children`), handler functions (passed between components or in navigation params),
551
+ and the array methods `map`, `filter`, `find`, `findIndex`, `some`, `reduce`, `toSorted`,
552
+ `includes`, `indexOf`, `slice`, `concat`,
553
+ `join`, `toReversed`, `with`, `toSpliced`, and in-place array calls `sort`, `reverse`,
554
+ `push`, `pop`, `shift`, `unshift`, `splice`, `fill` and `copyWithin` (`includes`, `indexOf`, `slice` and
555
+ `concat` also work on strings, as does `trim`), the string methods `split`,
556
+ `startsWith`, `endsWith`, `replace` (with text or a function as the replacement),
557
+ `substring`, `toLowerCase` and `toUpperCase`, date formatting with `formatDate`
558
+ in the device's time zone, language names with `languageName`, `Date.now()`,
559
+ imported app images, `useSafeAreaInsets()` (every inset is 0 on a TV), `useRef`
560
+ values, `DeviceInfo` reads and hooks (the Roku reports its own model, OS version and
561
+ app details, and the library's defaults where a TV has no such value), and
562
+ `useReducedMotion()`, which is always `false` because Roku has no reduce-motion
563
+ setting, `useSearch` with its `results`, `active` and `pending`, viewer access from
564
+ `useAccess` (`status`, `offers`, `holdings` and `access.item(id)`), access actions
565
+ (`subscribe`, `startTrial`, `buy`, `rent`, `restorePurchases` and `manageSubscription`
566
+ thunks), which run and resolve with outcome `unavailable` because Roku has no payment
567
+ channel, data thunks written as one expression (`async () => content.list()` or
568
+ `content.collections()`), `defineApp({ onBack })`, which runs when no Back handler takes
569
+ Back and the stack has no screen to return to, `exitApp()` and `BackHandler.exitApp()`,
570
+ which close the channel, route and navigation reads (`useRoute` with its `name`, `key`
571
+ and `params`, `useIsFocused`, `useNavigationState`, `useTheme`, the navigation getters
572
+ `canGoBack()`, `isFocused()`, `getState()` and `getId()`, the app navigation's
573
+ `isReady()`, `getCurrentRoute()`, `getCurrentOptions()` and `getRootState()`,
574
+ `DefaultTheme` and `DarkTheme` navigation themes, `findFocusedRoute` and
575
+ `getFocusedRouteNameFromRoute`), plus translations: `t()` with its options, `i18n.language`,
576
+ `i18n.resolvedLanguage`, `i18n.supportedLngs` and `changeLanguage`. Language files
577
+ must not use `{{value, format}}` formatting or `$t()` nesting. Rows of nested
578
+ `FlashList`s built from library rows with `filter`, `map` and object literals are supported. Refused on Roku:
579
+ animation forms, which refuse the app: `Animated` components and
580
+ `createAnimatedComponent`, shared values, animated styles and props, worklets, layout,
581
+ entering and exiting animations, animated scroll handlers, `measure` and frame
582
+ callbacks.
583
+ - Player: `VideoView` with MP4 and HLS, seek, resume, replay and end states.
584
+ - Remote keys are app-owned as elsewhere; `scrubForward`/`scrubBackward` and the
585
+ `scrub` config behave as on other targets.
586
+ - `Slider`, `ScrubFilmstrip`, `ScrubThumbnail` and `VideoThumbnail` are not
587
+ supported, and the Roku player draws no preview frames of its own. Keep them in a
588
+ component whose `.roku.tsx` variant leaves them out, and show the scrub position
589
+ there from `player.displayPosition`, `player.progress` and `player.elapsedText`.
590
+ - Audio and subtitle track lists and selection work. Choosing a subtitle turns the
591
+ device's captions on, and choosing none turns them off.
592
+ - `subtitleStyle` is approximated with the system caption styles: size small,
593
+ medium or large, the nearest of eight named colours, opacity in 25% steps and
594
+ the edge effect. `edgeColor` and `bottomInset` are ignored, and only system fonts
595
+ are used.
596
+ - `entryId` saves and resumes progress for the viewer's default profile; there is
597
+ no profile picker. Progress is saved on pause, end, exit and every five minutes.
598
+ - `setRate` is accepted but leaves the rate unchanged (it still shows the controls), and any `resizeMode` other than `contain` is accepted and draws as `contain`.
599
+ `capabilities.player.rate` and `capabilities.player.resizeMode` read false, so
600
+ show speed and fit menus only when they are true.
601
+ - DRM, ads and live playback are not supported.
602
+ - Casting, downloads and offline mode are accepted but inert: `player.cast.airplay` and
603
+ `player.cast.chromecast` report `supported: false`, `useDownloads()` reports
604
+ `supported: false` with no tasks, `useConnectivity().state` is `'unknown'` and
605
+ `useAppMode()` stays online with no offline app. Their commands do nothing, and awaited
606
+ calls resolve as unsupported or unavailable. Show those controls only when `supported`
607
+ is true, so shared screens need no Roku variant.
608
+ - Accounts: password sign-in, registration and sign-out with controlled fields and the
609
+ default custom TV keyboard ([tv-text-entry.md](tv-text-entry.md)). Keep the marketing
610
+ consent checkbox and switch in shared screens as usual: on Roku `marketingConsent` stays
611
+ `null`, so they stay hidden, and `setMarketingConsent` rejects with `AUTH_UNAVAILABLE`.
612
+
613
+ Verify neutral imports and every authored variant with `tsc --noEmit`, then build.
614
+ For each supported target, test the API-selected root, routes and controls, and
615
+ confirm a missing required variant fails visibly. Use the actual app for remote
616
+ focus, keyboard, safe-area, rotation and state-retention acceptance.