react-native-roku 0.0.0-stage → 0.2.0-preview.3

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 +328 -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 +368 -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,334 @@
1
+ import {
2
+ createElement,
3
+ forwardRef,
4
+ useEffect,
5
+ useLayoutEffect,
6
+ useImperativeHandle,
7
+ useRef,
8
+ useState,
9
+ } from "react";
10
+ import { Text, type NativeElementProps } from "./primitives";
11
+ import { aliasNativeViewHandle, type NativeViewHandle } from "./nativeViewHandle";
12
+ import { RokuHostError } from "../scene/sceneGraph.types";
13
+ import { useNativeHost } from "./nativeHostContext";
14
+ import type { TextEntrySession } from "../services/DeviceServices";
15
+ import { AppState } from "./environment";
16
+ import { prepareKeyboardFocus, trackKeyboardSession } from "./keyboard";
17
+
18
+ export interface NativeTextInputProps extends NativeElementProps {
19
+ readonly value?: string;
20
+ readonly defaultValue?: string;
21
+ readonly editable?: boolean;
22
+ readonly placeholder?: string;
23
+ readonly placeholderTextColor?: string;
24
+ readonly secureTextEntry?: boolean;
25
+ readonly multiline?: boolean;
26
+ readonly allowFontScaling?: boolean;
27
+ readonly onChangeText?: (text: string) => void;
28
+ readonly onSelectionChange?: (event: {
29
+ nativeEvent: { selection: { start: number; end: number } };
30
+ }) => void;
31
+ readonly keyboardType?: string;
32
+ readonly maxLength?: number;
33
+ readonly onFocus?: (event: unknown) => void;
34
+ readonly onBlur?: (event: unknown) => void;
35
+ readonly onSubmitEditing?: (event: { nativeEvent: { text: string } }) => void;
36
+ }
37
+ export interface NativeTextInputHandle extends NativeViewHandle {
38
+ focus(): void;
39
+ blur(): void;
40
+ clear(): void;
41
+ isFocused(): boolean;
42
+ }
43
+
44
+ /** Text-backed input with an optional, explicitly admitted platform dialog. */
45
+ export const TextInput = forwardRef<NativeTextInputHandle, NativeTextInputProps>((props, ref) => {
46
+ const host = useNativeHost();
47
+ const label = useRef<NativeViewHandle>(null);
48
+ const [text, setText] = useState(props.defaultValue ?? "");
49
+ const [editCount, setEditCount] = useState(0);
50
+ const value = props.value ?? text;
51
+ const latestValue = useRef(value);
52
+ latestValue.current = value;
53
+ const mounted = useRef(true);
54
+ const current = useRef(props);
55
+ current.current = props;
56
+ const session = useRef<TextEntrySession | undefined>(undefined);
57
+ const requestEpoch = useRef(0);
58
+ const editorText = useRef("");
59
+ const textRelease = useRef<(() => void)[]>([]);
60
+ const releaseText = () => {
61
+ const releases = textRelease.current;
62
+ textRelease.current = [];
63
+ let failure: unknown;
64
+ for (const release of releases) {
65
+ try {
66
+ release();
67
+ } catch (error) {
68
+ failure ??= error;
69
+ }
70
+ }
71
+ if (failure) throw failure;
72
+ };
73
+ const keyboardRelease = useRef<(() => void) | undefined>(undefined);
74
+ const releaseKeyboard = () => {
75
+ keyboardRelease.current?.();
76
+ keyboardRelease.current = undefined;
77
+ };
78
+ useLayoutEffect(() => {
79
+ mounted.current = true;
80
+ return () => {
81
+ mounted.current = false;
82
+ requestEpoch.current++;
83
+ const pending = session.current;
84
+ session.current = undefined;
85
+ editorText.current = "";
86
+ try {
87
+ releaseKeyboard();
88
+ } finally {
89
+ try {
90
+ releaseText();
91
+ } finally {
92
+ pending?.close();
93
+ }
94
+ }
95
+ };
96
+ }, []);
97
+ const blur = () => {
98
+ const pending = session.current;
99
+ if (!pending) return;
100
+ requestEpoch.current++;
101
+ session.current = undefined;
102
+ editorText.current = "";
103
+ try {
104
+ releaseKeyboard();
105
+ } finally {
106
+ try {
107
+ releaseText();
108
+ } finally {
109
+ pending.close();
110
+ }
111
+ }
112
+ current.current.onBlur?.({ nativeEvent: {} });
113
+ };
114
+ const updateEditor = (next: string) => {
115
+ const pending = session.current;
116
+ if (!pending) return;
117
+ try {
118
+ if (!pending.setText)
119
+ throw new RokuHostError(
120
+ "C07_TEXT_ENTRY",
121
+ "The keyboard port cannot update an active editor",
122
+ );
123
+ editorText.current = next.slice(0, current.current.maxLength ?? 4096);
124
+ if (pending.setText(next) === false) blur();
125
+ } catch (error) {
126
+ // An uncertain update cannot later submit the preceding draft.
127
+ blur();
128
+ throw error;
129
+ }
130
+ };
131
+ useLayoutEffect(() => {
132
+ if (props.editable === false) blur();
133
+ }, [props.editable]);
134
+ useLayoutEffect(() => {
135
+ if (props.value !== undefined) updateEditor(props.value);
136
+ }, [props.value, editCount]);
137
+ useEffect(() => {
138
+ const subscription = AppState.addEventListener("change", (state) => {
139
+ if (state === "background" || state === "inactive") blur();
140
+ });
141
+ return subscription.remove;
142
+ }, []);
143
+ useImperativeHandle(
144
+ ref,
145
+ () =>
146
+ aliasNativeViewHandle(
147
+ {
148
+ get nativeID() {
149
+ return label.current?.nativeID ?? "";
150
+ },
151
+ measure: (callback) => label.current?.measure(callback),
152
+ measureInWindow: (callback) => label.current?.measureInWindow(callback),
153
+ measureLayout: (relative, success, failure) =>
154
+ label.current?.measureLayout(relative, success, failure),
155
+ requestTVFocus: () => label.current?.requestTVFocus(),
156
+ setNativeProps(values) {
157
+ if (!mounted.current || !host.active)
158
+ throw new RokuHostError(
159
+ "RETIRED_VIEW",
160
+ "A retired input cannot receive native props",
161
+ );
162
+ const { text: next, ...rest } = values;
163
+ if (next !== undefined) {
164
+ if (typeof next !== "string")
165
+ throw new RokuHostError("C04_INPUT_TEXT", "Text input updates require a string");
166
+ updateEditor(next);
167
+ host.runSync(() => setText(next));
168
+ }
169
+ if (Object.keys(rest).length) label.current?.setNativeProps(rest);
170
+ },
171
+ clear() {
172
+ if (!mounted.current || !host.active) return;
173
+ updateEditor("");
174
+ host.runSync(() => setText(""));
175
+ },
176
+ focus() {
177
+ const input = current.current;
178
+ if (
179
+ !mounted.current ||
180
+ !host.active ||
181
+ input.editable === false ||
182
+ session.current ||
183
+ AppState.currentState === "background" ||
184
+ AppState.currentState === "inactive"
185
+ )
186
+ return;
187
+ const port = host.textEntry;
188
+ if (!port)
189
+ throw new RokuHostError(
190
+ "C07_TEXT_ENTRY",
191
+ "An editable input requires the native keyboard port",
192
+ );
193
+ const ownsRequest = prepareKeyboardFocus();
194
+ if (!ownsRequest() || !mounted.current || !host.active || session.current) return;
195
+ host.cancelInput();
196
+ // Press-out/cancel callbacks may have admitted a newer editor.
197
+ if (!ownsRequest() || !mounted.current || !host.active || session.current) return;
198
+ const epoch = ++requestEpoch.current;
199
+ const pending = port.open({
200
+ title:
201
+ input["aria-label"] ??
202
+ input.accessibilityLabel ??
203
+ input.placeholder ??
204
+ "Enter text",
205
+ text: latestValue.current,
206
+ secure: input.secureTextEntry === true,
207
+ domain: input.secureTextEntry
208
+ ? "password"
209
+ : input.keyboardType === "email-address"
210
+ ? "email"
211
+ : ["number-pad", "numeric", "decimal-pad", "phone-pad"].includes(
212
+ input.keyboardType ?? "",
213
+ )
214
+ ? "numeric"
215
+ : "generic",
216
+ maxLength: input.maxLength ?? 4096,
217
+ });
218
+ if (!ownsRequest() || !mounted.current || !host.active) {
219
+ pending.close();
220
+ return;
221
+ }
222
+ session.current = pending;
223
+ editorText.current = latestValue.current.slice(0, input.maxLength ?? 4096);
224
+ const currentRequest = () =>
225
+ mounted.current && host.active && requestEpoch.current === epoch;
226
+ void pending.result.then((result) => {
227
+ if (!currentRequest() || session.current !== pending) return;
228
+ const next = result?.slice(0, current.current.maxLength ?? 4096);
229
+ const changed = next !== editorText.current;
230
+ session.current = undefined;
231
+ editorText.current = "";
232
+ releaseKeyboard();
233
+ releaseText();
234
+ host.runSync(() => {
235
+ if (next !== undefined) {
236
+ setText(next);
237
+ if (current.current.value === undefined) latestValue.current = next;
238
+ if (changed) current.current.onChangeText?.(next);
239
+ if (!currentRequest()) return;
240
+ current.current.onSubmitEditing?.({ nativeEvent: { text: next } });
241
+ }
242
+ if (currentRequest()) current.current.onBlur?.({ nativeEvent: {} });
243
+ });
244
+ });
245
+ keyboardRelease.current = trackKeyboardSession(
246
+ pending,
247
+ () => {
248
+ if (session.current === pending) blur();
249
+ },
250
+ () => mounted.current && host.active,
251
+ );
252
+ try {
253
+ current.current.onFocus?.({ nativeEvent: {} });
254
+ if (!currentRequest() || session.current !== pending) return;
255
+ const retain = (remove: (() => void) | undefined) => {
256
+ // A synchronous replay may retire this input before subscribe
257
+ // returns its remover. Never attach it to a successor.
258
+ if (!currentRequest() || session.current !== pending) {
259
+ remove?.();
260
+ return false;
261
+ }
262
+ if (remove) textRelease.current.push(remove);
263
+ return true;
264
+ };
265
+ const removeText = pending.subscribeText?.((text) => {
266
+ if (!currentRequest() || session.current !== pending) return;
267
+ const next = text.slice(0, current.current.maxLength ?? 4096);
268
+ if (next === editorText.current) return;
269
+ editorText.current = next;
270
+ host.runSync(() => {
271
+ setText(next);
272
+ setEditCount((count) => count + 1);
273
+ if (current.current.value === undefined) latestValue.current = next;
274
+ current.current.onChangeText?.(next);
275
+ });
276
+ });
277
+ if (!retain(removeText)) return;
278
+ let lastSelection: { start: number; end: number } | undefined;
279
+ retain(
280
+ pending.subscribeSelection?.(({ start, end }) => {
281
+ if (!currentRequest() || session.current !== pending) return;
282
+ if (
283
+ !Number.isSafeInteger(start) ||
284
+ !Number.isSafeInteger(end) ||
285
+ start < 0 ||
286
+ end < start ||
287
+ end > editorText.current.length ||
288
+ (lastSelection?.start === start && lastSelection.end === end)
289
+ )
290
+ return;
291
+ lastSelection = { start, end };
292
+ if (current.current.onSelectionChange)
293
+ host.runSync(() =>
294
+ current.current.onSelectionChange?.({
295
+ nativeEvent: { selection: { start, end } },
296
+ }),
297
+ );
298
+ }),
299
+ );
300
+ } catch (error) {
301
+ if (session.current === pending) {
302
+ try {
303
+ blur();
304
+ } catch {
305
+ /* Retain the original focus/subscription failure. */
306
+ }
307
+ }
308
+ throw error;
309
+ }
310
+ },
311
+ blur,
312
+ isFocused: () => mounted.current && session.current !== undefined,
313
+ },
314
+ () => label.current,
315
+ ),
316
+ [host],
317
+ );
318
+ const display = value || props.placeholder || "";
319
+ return createElement(
320
+ Text,
321
+ {
322
+ ...props,
323
+ ref: label,
324
+ focusable: false,
325
+ numberOfLines: props.multiline ? 0 : 1,
326
+ style: [
327
+ props.style,
328
+ !value && props.placeholderTextColor ? { color: props.placeholderTextColor } : undefined,
329
+ ],
330
+ },
331
+ props.secureTextEntry && value ? "•".repeat(value.length) : display,
332
+ );
333
+ });
334
+ TextInput.displayName = "RokuTextInput";
@@ -0,0 +1,25 @@
1
+ import { RokuHostError } from "../scene/sceneGraph.types";
2
+
3
+ function component(name: string) {
4
+ const unavailable = (): never => {
5
+ throw new RokuHostError("C03_COMPONENT", `${name} has no admitted Roku implementation`);
6
+ };
7
+ unavailable.displayName = `RokuUnsupported${name}`;
8
+ return unavailable;
9
+ }
10
+ // Interop libraries register all core component identities during initialization.
11
+ // Unimplemented identities remain importable and fail explicitly if rendered.
12
+ export const Image = component("Image"),
13
+ ImageBackground = component("ImageBackground");
14
+ export const ScrollView = component("ScrollView"),
15
+ FlatList = component("FlatList"),
16
+ VirtualizedList = component("VirtualizedList");
17
+ export const Switch = component("Switch"),
18
+ TextInput = component("TextInput"),
19
+ ActivityIndicator = component("ActivityIndicator");
20
+ export const TouchableHighlight = component("TouchableHighlight"),
21
+ TouchableOpacity = component("TouchableOpacity"),
22
+ TouchableWithoutFeedback = component("TouchableWithoutFeedback");
23
+ export const StatusBar = component("StatusBar"),
24
+ Modal = component("Modal"),
25
+ KeyboardAvoidingView = component("KeyboardAvoidingView");