@rootnative/web 0.0.0-alpha.1 → 0.0.0-alpha.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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as FlatStyle, r as StyleProp } from "./types-BxTWbdj9.js";
2
- import { BaseSyntheticEvent, ComponentType, Context, DOMAttributes, FocusEvent as FocusEvent$1, HTMLAttributeReferrerPolicy, KeyboardEvent, MouseEvent as MouseEvent$1, NamedExoticComponent, PointerEvent, ReactElement, ReactNode, Ref, SyntheticEvent } from "react";
1
+ import { r as StyleProp } from "./types-BxTWbdj9.js";
2
+ import { BaseSyntheticEvent, CSSProperties, ComponentType, Context, DOMAttributes, ElementType, FocusEvent as FocusEvent$1, HTMLAttributeReferrerPolicy, KeyboardEvent as KeyboardEvent$1, MouseEvent as MouseEvent$1, NamedExoticComponent, PointerEvent as PointerEvent$1, ReactElement, ReactNode, Ref } from "react";
3
3
  type AccessibilityChangeEventName = "change" | "boldTextChanged" | "grayscaleChanged" | "invertColorsChanged" | "reduceMotionChanged" | "reduceTransparencyChanged" | "highTextContrastChanged" | "darkerSystemColorsChanged" | "screenReaderChanged" | "announcementFinished";
4
4
  type AccessibilityChangeEvent = boolean;
5
5
  type AccessibilityAnnouncementFinishedEvent = {
@@ -29,6 +29,27 @@ export declare const AccessibilityInfo: {
29
29
  setAccessibilityFocus: (target: HTMLElement | number | null | undefined) => void;
30
30
  sendAccessibilityEvent: (target: HTMLElement | number | null | undefined, eventType: string) => void;
31
31
  };
32
+ type AlertType = "default" | "plain-text" | "secure-text" | "login-password";
33
+ type AlertButtonStyle = "default" | "cancel" | "destructive";
34
+ type AlertButton = {
35
+ text?: string | undefined;
36
+ onPress?: ((value?: string) => unknown) | undefined;
37
+ isPreferred?: boolean | undefined;
38
+ style?: AlertButtonStyle | undefined;
39
+ };
40
+ type AlertOptions = {
41
+ cancelable?: boolean | undefined;
42
+ userInterfaceStyle?: "unspecified" | "light" | "dark" | undefined;
43
+ onDismiss?: (() => void) | undefined;
44
+ };
45
+ /**
46
+ * React Native's `Alert` on a `<dialog role="alertdialog">` with the look of Android's
47
+ * AlertDialog. It isn't part of the React tree, so it works from any handler.
48
+ */
49
+ export declare const Alert: {
50
+ alert: (title: string | null | undefined, message?: string | null | undefined, buttons?: ReadonlyArray<AlertButton>, options?: AlertOptions) => void;
51
+ prompt: (title: string | null | undefined, message?: string | null | undefined, callbackOrButtons?: ((text: string) => void) | ReadonlyArray<AlertButton> | null | undefined, type?: AlertType | null | undefined, defaultValue?: string, keyboardType?: string, options?: AlertOptions) => void;
52
+ };
32
53
  type ColorSchemeName = "light" | "dark" | null | undefined;
33
54
  type AppearancePreferences = {
34
55
  colorScheme: ColorSchemeName;
@@ -42,6 +63,54 @@ export declare const Appearance: {
42
63
  setColorScheme: (scheme: ColorSchemeName | "unspecified") => void;
43
64
  addChangeListener: (listener: AppearanceListener) => NativeEventSubscription;
44
65
  };
66
+ type NativeSyntheticEvent<T> = BaseSyntheticEvent<T, HTMLElement, EventTarget>;
67
+ type NativeTouchEvent = Readonly<{
68
+ changedTouches: ReadonlyArray<NativeTouchEvent>;
69
+ force?: number | undefined;
70
+ identifier: number;
71
+ locationX: number;
72
+ locationY: number;
73
+ pageX: number;
74
+ pageY: number;
75
+ target: EventTarget | null;
76
+ timestamp: number;
77
+ touches: ReadonlyArray<NativeTouchEvent>;
78
+ }>;
79
+ type GestureResponderEvent = NativeSyntheticEvent<NativeTouchEvent>;
80
+ type MouseEvent = NativeSyntheticEvent<Readonly<{
81
+ clientX: number;
82
+ clientY: number;
83
+ pageX: number;
84
+ pageY: number;
85
+ timestamp: number;
86
+ }>>;
87
+ type FocusEvent = FocusEvent$1<HTMLElement>;
88
+ type BlurEvent = FocusEvent$1<HTMLElement>;
89
+ type TargetedEvent = Readonly<{
90
+ target: EventTarget | null;
91
+ }>;
92
+ type PointerEvent = PointerEvent$1<HTMLElement>;
93
+ type EventSubscription = {
94
+ remove: () => void;
95
+ };
96
+ type AppStateStatus = "inactive" | "background" | "active" | "extension" | "unknown";
97
+ type AppStateEventDefinitions = {
98
+ change: [AppStateStatus];
99
+ memoryWarning: [];
100
+ blur: [];
101
+ focus: [];
102
+ };
103
+ type AppStateEvent = keyof AppStateEventDefinitions;
104
+ /**
105
+ * The app is `active` while its page is visible, and in the `background` while the page is
106
+ * hidden or unloads. A focus change of the window fires `blur` and `focus`, as on Android, and
107
+ * the state stays `active`.
108
+ */
109
+ export declare const AppState: {
110
+ readonly currentState: AppStateStatus;
111
+ readonly isAvailable: boolean;
112
+ addEventListener: <K extends AppStateEvent>(type: K, handler: (...args: AppStateEventDefinitions[K]) => void) => EventSubscription;
113
+ };
45
114
  type BackPressHandler = () => boolean | null | undefined;
46
115
  type BackHandlerSubscription = {
47
116
  remove: () => void;
@@ -51,6 +120,14 @@ export declare const BackHandler: {
51
120
  removeEventListener: (eventName: "hardwareBackPress", handler: BackPressHandler) => void;
52
121
  exitApp: () => void;
53
122
  };
123
+ /**
124
+ * Reads and writes text on the clipboard with the async Clipboard API. Deprecated in React
125
+ * Native, so the first call logs a warning.
126
+ */
127
+ export declare const Clipboard: {
128
+ getString: () => Promise<string>;
129
+ setString: (content: string) => void;
130
+ };
54
131
  type ScaledSize = {
55
132
  width: number;
56
133
  height: number;
@@ -82,29 +159,66 @@ export declare const I18nManager: {
82
159
  forceRTL: (force: boolean) => void;
83
160
  swapLeftAndRightInRTL: (swap: boolean) => void;
84
161
  };
85
- type NativeSyntheticEvent<T> = BaseSyntheticEvent<T, HTMLElement, EventTarget>;
86
- type NativeTouchEvent = Readonly<{
87
- changedTouches: ReadonlyArray<NativeTouchEvent>;
88
- force?: number | undefined;
89
- identifier: number;
90
- locationX: number;
91
- locationY: number;
92
- pageX: number;
93
- pageY: number;
94
- target: EventTarget | null;
95
- timestamp: number;
96
- touches: ReadonlyArray<NativeTouchEvent>;
162
+ type KeyboardEventName = "keyboardWillShow" | "keyboardDidShow" | "keyboardWillHide" | "keyboardDidHide" | "keyboardWillChangeFrame" | "keyboardDidChangeFrame";
163
+ type KeyboardEventEasing = "easeIn" | "easeInEaseOut" | "easeOut" | "linear" | "keyboard";
164
+ type KeyboardMetrics = Readonly<{
165
+ screenX: number;
166
+ screenY: number;
167
+ width: number;
168
+ height: number;
97
169
  }>;
98
- type GestureResponderEvent = NativeSyntheticEvent<NativeTouchEvent>;
99
- type MouseEvent = NativeSyntheticEvent<Readonly<{
100
- clientX: number;
101
- clientY: number;
102
- pageX: number;
103
- pageY: number;
104
- timestamp: number;
105
- }>>;
106
- type FocusEvent = FocusEvent$1<HTMLElement>;
107
- type BlurEvent = FocusEvent$1<HTMLElement>;
170
+ type AndroidKeyboardEvent = Readonly<{
171
+ duration: 0;
172
+ easing: "keyboard";
173
+ endCoordinates: KeyboardMetrics;
174
+ }>;
175
+ type IOSKeyboardEvent = Readonly<{
176
+ duration: number;
177
+ easing: KeyboardEventEasing;
178
+ endCoordinates: KeyboardMetrics;
179
+ startCoordinates: KeyboardMetrics;
180
+ isEventFromThisApp: boolean;
181
+ }>;
182
+ type KeyboardEvent = AndroidKeyboardEvent | IOSKeyboardEvent;
183
+ /**
184
+ * The keyboard of a phone or a tablet, as on Android: `keyboardDidShow` fires when the keyboard
185
+ * shows and when its height changes, and `keyboardDidHide` fires when it hides. The `Will` and
186
+ * `ChangeFrame` events never fire.
187
+ */
188
+ export declare const Keyboard: {
189
+ addListener: <K extends KeyboardEventName>(eventType: K, listener: (event: KeyboardEvent) => unknown, context?: unknown) => EventSubscription;
190
+ removeAllListeners: (eventType?: KeyboardEventName | null) => void;
191
+ dismiss: () => void;
192
+ isVisible: () => boolean;
193
+ metrics: () => KeyboardMetrics | null | undefined;
194
+ scheduleLayoutAnimation: (event: KeyboardEvent) => void;
195
+ };
196
+ type LinkingEventDefinitions = {
197
+ url: [{
198
+ url: string;
199
+ }];
200
+ };
201
+ type LinkingEvent = keyof LinkingEventDefinitions;
202
+ /**
203
+ * Opens URLs and reports the URL that the page loaded with. A URL of this site opens in this tab,
204
+ * a URL of another site in a new tab, and `mailto:`, `tel:`, and other schemes go to the system.
205
+ * The browser never fires `url`: back, forward, and links belong to the router.
206
+ */
207
+ export declare const Linking: {
208
+ addEventListener: <K extends LinkingEvent>(eventType: K, listener: (...args: LinkingEventDefinitions[K]) => unknown) => EventSubscription;
209
+ addListener: <K extends LinkingEvent>(eventType: K, listener: (...args: LinkingEventDefinitions[K]) => unknown, context?: unknown) => EventSubscription;
210
+ emit: <K extends LinkingEvent>(eventType: K, ...args: LinkingEventDefinitions[K]) => void;
211
+ removeAllListeners: <K extends LinkingEvent>(eventType?: K | null) => void;
212
+ listenerCount: <K extends LinkingEvent>(eventType: K) => number;
213
+ openURL: (url: string) => Promise<void>;
214
+ canOpenURL: (url: string) => Promise<boolean>;
215
+ openSettings: () => Promise<void>;
216
+ getInitialURL: () => Promise<string | null>;
217
+ sendIntent: (action: string, extras?: Array<{
218
+ key: string;
219
+ value: string | number | boolean;
220
+ }>) => Promise<void>;
221
+ };
108
222
  type PanResponderGestureState = {
109
223
  stateID: number;
110
224
  moveX: number;
@@ -135,7 +249,7 @@ type PanResponderCallbacks = {
135
249
  onPanResponderTerminationRequest?: Predicate | undefined;
136
250
  onShouldBlockNativeResponder?: Predicate | undefined;
137
251
  };
138
- type Handler = (event: PointerEvent<HTMLElement>) => void;
252
+ type Handler = (event: PointerEvent$1<HTMLElement>) => void;
139
253
  type GestureResponderHandlers = {
140
254
  onPointerDownCapture: Handler;
141
255
  onPointerDown: Handler;
@@ -183,7 +297,360 @@ type PlatformType = {
183
297
  export declare const Platform: PlatformType;
184
298
  type ProcessedColorValue = number;
185
299
  export declare const processColor: (color: unknown) => ProcessedColorValue | null | undefined;
186
- type NamedStyles<T> = { [P in keyof T]: FlatStyle; };
300
+ type ShareContent = {
301
+ title?: string | undefined;
302
+ url: string;
303
+ message?: string | undefined;
304
+ } | {
305
+ title?: string | undefined;
306
+ url?: string | undefined;
307
+ message: string;
308
+ };
309
+ type ShareOptions = {
310
+ dialogTitle?: string | undefined;
311
+ excludedActivityTypes?: Array<string> | undefined;
312
+ tintColor?: string | undefined;
313
+ subject?: string | undefined;
314
+ anchor?: number | undefined;
315
+ };
316
+ type ShareAction = {
317
+ action: "sharedAction" | "dismissedAction";
318
+ activityType?: string | null | undefined;
319
+ };
320
+ /**
321
+ * Opens the browser's share sheet with `navigator.share`. It shares the title, the message,
322
+ * and the URL. A closed sheet resolves `dismissedAction`, as on iOS.
323
+ */
324
+ export declare const Share: {
325
+ share: (content: ShareContent, options?: ShareOptions) => Promise<ShareAction>;
326
+ readonly sharedAction: "sharedAction";
327
+ readonly dismissedAction: "dismissedAction";
328
+ };
329
+ type ImageResizeMode = "cover" | "contain" | "stretch" | "repeat" | "center";
330
+ /** A color from `PlatformColor` or `DynamicColorIOS` on native. The web has neither. */
331
+ type NativeColorValue = symbol & {
332
+ __NativeColorValue__: string;
333
+ };
334
+ /** @deprecated Use `NativeColorValue`. */
335
+ type OpaqueColorValue = NativeColorValue;
336
+ type ColorValue = null | string | number | NativeColorValue;
337
+ type DimensionValue = number | string | "auto" | null;
338
+ type CursorValue = "auto" | "pointer";
339
+ type PointValue = {
340
+ x: number;
341
+ y: number;
342
+ };
343
+ type EdgeInsetsValue = {
344
+ top: number;
345
+ left: number;
346
+ right: number;
347
+ bottom: number;
348
+ };
349
+ type LayoutStyle = Readonly<{
350
+ display?: "none" | "flex" | "contents" | undefined;
351
+ width?: DimensionValue | undefined;
352
+ height?: DimensionValue | undefined;
353
+ bottom?: DimensionValue | undefined;
354
+ end?: DimensionValue | undefined;
355
+ left?: DimensionValue | undefined;
356
+ right?: DimensionValue | undefined;
357
+ start?: DimensionValue | undefined;
358
+ top?: DimensionValue | undefined;
359
+ inset?: DimensionValue | undefined;
360
+ insetBlock?: DimensionValue | undefined;
361
+ insetBlockEnd?: DimensionValue | undefined;
362
+ insetBlockStart?: DimensionValue | undefined;
363
+ insetInline?: DimensionValue | undefined;
364
+ insetInlineEnd?: DimensionValue | undefined;
365
+ insetInlineStart?: DimensionValue | undefined;
366
+ minWidth?: DimensionValue | undefined;
367
+ maxWidth?: DimensionValue | undefined;
368
+ minHeight?: DimensionValue | undefined;
369
+ maxHeight?: DimensionValue | undefined;
370
+ margin?: DimensionValue | undefined;
371
+ marginBlock?: DimensionValue | undefined;
372
+ marginBlockEnd?: DimensionValue | undefined;
373
+ marginBlockStart?: DimensionValue | undefined;
374
+ marginBottom?: DimensionValue | undefined;
375
+ marginEnd?: DimensionValue | undefined;
376
+ marginHorizontal?: DimensionValue | undefined;
377
+ marginInline?: DimensionValue | undefined;
378
+ marginInlineEnd?: DimensionValue | undefined;
379
+ marginInlineStart?: DimensionValue | undefined;
380
+ marginLeft?: DimensionValue | undefined;
381
+ marginRight?: DimensionValue | undefined;
382
+ marginStart?: DimensionValue | undefined;
383
+ marginTop?: DimensionValue | undefined;
384
+ marginVertical?: DimensionValue | undefined;
385
+ padding?: DimensionValue | undefined;
386
+ paddingBlock?: DimensionValue | undefined;
387
+ paddingBlockEnd?: DimensionValue | undefined;
388
+ paddingBlockStart?: DimensionValue | undefined;
389
+ paddingBottom?: DimensionValue | undefined;
390
+ paddingEnd?: DimensionValue | undefined;
391
+ paddingHorizontal?: DimensionValue | undefined;
392
+ paddingInline?: DimensionValue | undefined;
393
+ paddingInlineEnd?: DimensionValue | undefined;
394
+ paddingInlineStart?: DimensionValue | undefined;
395
+ paddingLeft?: DimensionValue | undefined;
396
+ paddingRight?: DimensionValue | undefined;
397
+ paddingStart?: DimensionValue | undefined;
398
+ paddingTop?: DimensionValue | undefined;
399
+ paddingVertical?: DimensionValue | undefined;
400
+ borderWidth?: number | undefined;
401
+ borderBottomWidth?: number | undefined;
402
+ borderEndWidth?: number | undefined;
403
+ borderLeftWidth?: number | undefined;
404
+ borderRightWidth?: number | undefined;
405
+ borderStartWidth?: number | undefined;
406
+ borderTopWidth?: number | undefined;
407
+ position?: "absolute" | "relative" | "static" | undefined;
408
+ flexDirection?: "row" | "row-reverse" | "column" | "column-reverse" | undefined;
409
+ flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
410
+ justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
411
+ alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
412
+ alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
413
+ alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
414
+ overflow?: "visible" | "hidden" | "scroll" | undefined;
415
+ flex?: number | undefined;
416
+ flexGrow?: number | undefined;
417
+ flexShrink?: number | undefined;
418
+ flexBasis?: number | string | undefined;
419
+ aspectRatio?: number | string | undefined;
420
+ boxSizing?: "border-box" | "content-box" | undefined;
421
+ zIndex?: number | undefined;
422
+ direction?: "inherit" | "ltr" | "rtl" | undefined;
423
+ rowGap?: number | string | undefined;
424
+ columnGap?: number | string | undefined;
425
+ gap?: number | string | undefined;
426
+ }>;
427
+ type ShadowStyle = Readonly<{
428
+ shadowColor?: ColorValue | undefined;
429
+ shadowOffset?: Readonly<{
430
+ width?: number | undefined;
431
+ height?: number | undefined;
432
+ }> | undefined;
433
+ shadowOpacity?: number | undefined;
434
+ shadowRadius?: number | undefined;
435
+ }>;
436
+ type KeysOfUnion<T> = T extends unknown ? keyof T : never;
437
+ type ValueOfUnion<T, K> = T extends unknown ? (K extends keyof T ? T[K] : never) : never;
438
+ type MergeUnion<T> = { [K in KeysOfUnion<T>]?: ValueOfUnion<T, K>; };
439
+ type MaximumOneOf<T> = { [K in keyof T]: { [P in keyof T]?: P extends K ? T[P] : never; }; }[keyof T];
440
+ type TransformOperation = Readonly<MaximumOneOf<MergeUnion<{
441
+ readonly perspective: number;
442
+ } | {
443
+ readonly rotate: string;
444
+ } | {
445
+ readonly rotateX: string;
446
+ } | {
447
+ readonly rotateY: string;
448
+ } | {
449
+ readonly rotateZ: string;
450
+ } | {
451
+ readonly scale: number;
452
+ } | {
453
+ readonly scaleX: number;
454
+ } | {
455
+ readonly scaleY: number;
456
+ } | {
457
+ readonly translateX: number | string;
458
+ } | {
459
+ readonly translateY: number | string;
460
+ } | {
461
+ readonly translate: [number | string, number | string];
462
+ } | {
463
+ readonly skewX: string;
464
+ } | {
465
+ readonly skewY: string;
466
+ } | {
467
+ readonly matrix: ReadonlyArray<number>;
468
+ }>>>;
469
+ type TransformsStyle = Readonly<{
470
+ transform?: ReadonlyArray<TransformOperation> | string | undefined;
471
+ transformOrigin?: [string | number, string | number, string | number] | string | undefined;
472
+ }>;
473
+ type FilterFunction = {
474
+ brightness: number | string;
475
+ } | {
476
+ blur: number | string;
477
+ } | {
478
+ contrast: number | string;
479
+ } | {
480
+ grayscale: number | string;
481
+ } | {
482
+ hueRotate: number | string;
483
+ } | {
484
+ invert: number | string;
485
+ } | {
486
+ opacity: number | string;
487
+ } | {
488
+ saturate: number | string;
489
+ } | {
490
+ sepia: number | string;
491
+ } | {
492
+ dropShadow: DropShadowValue | string;
493
+ };
494
+ type DropShadowValue = {
495
+ offsetX: number | string;
496
+ offsetY: number | string;
497
+ standardDeviation?: number | string | undefined;
498
+ color?: ColorValue | undefined;
499
+ };
500
+ type ColorStops = ReadonlyArray<{
501
+ color: ColorValue;
502
+ positions?: ReadonlyArray<string> | undefined;
503
+ }>;
504
+ type LinearGradientValue = {
505
+ type: "linear-gradient";
506
+ direction?: string | undefined;
507
+ colorStops: ColorStops;
508
+ };
509
+ type EdgePosition = {
510
+ top: number | string;
511
+ left: number | string;
512
+ } | {
513
+ top: number | string;
514
+ right: number | string;
515
+ } | {
516
+ bottom: number | string;
517
+ left: number | string;
518
+ } | {
519
+ bottom: number | string;
520
+ right: number | string;
521
+ };
522
+ type RadialGradientPosition = EdgePosition;
523
+ type RadialGradientShape = "circle" | "ellipse";
524
+ type RadialGradientSize = "closest-corner" | "closest-side" | "farthest-corner" | "farthest-side" | {
525
+ x: string | number;
526
+ y: string | number;
527
+ };
528
+ type RadialGradientValue = {
529
+ type: "radial-gradient";
530
+ shape: RadialGradientShape;
531
+ size: RadialGradientSize;
532
+ position: RadialGradientPosition;
533
+ colorStops: ColorStops;
534
+ };
535
+ type BackgroundImageValue = LinearGradientValue | RadialGradientValue;
536
+ type BackgroundSizeValue = {
537
+ x: string | number;
538
+ y: string | number;
539
+ };
540
+ type BackgroundRepeatKeyword = "repeat" | "space" | "round" | "no-repeat";
541
+ type BackgroundPositionValue = EdgePosition;
542
+ type BackgroundRepeatValue = {
543
+ x: BackgroundRepeatKeyword;
544
+ y: BackgroundRepeatKeyword;
545
+ };
546
+ type BoxShadowValue = {
547
+ offsetX: number | string;
548
+ offsetY: number | string;
549
+ color?: ColorValue | undefined;
550
+ blurRadius?: number | string | undefined;
551
+ spreadDistance?: number | string | undefined;
552
+ inset?: boolean | undefined;
553
+ };
554
+ type BlendMode = "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "color" | "luminosity" | "plus-lighter";
555
+ type ViewStyleBase = Readonly<{
556
+ backfaceVisibility?: "visible" | "hidden" | undefined;
557
+ backgroundColor?: ColorValue | undefined;
558
+ borderColor?: ColorValue | undefined;
559
+ borderCurve?: "circular" | "continuous" | undefined;
560
+ borderBottomColor?: ColorValue | undefined;
561
+ borderEndColor?: ColorValue | undefined;
562
+ borderLeftColor?: ColorValue | undefined;
563
+ borderRightColor?: ColorValue | undefined;
564
+ borderStartColor?: ColorValue | undefined;
565
+ borderTopColor?: ColorValue | undefined;
566
+ borderBlockColor?: ColorValue | undefined;
567
+ borderBlockEndColor?: ColorValue | undefined;
568
+ borderBlockStartColor?: ColorValue | undefined;
569
+ borderRadius?: number | string | undefined;
570
+ borderBottomEndRadius?: number | string | undefined;
571
+ borderBottomLeftRadius?: number | string | undefined;
572
+ borderBottomRightRadius?: number | string | undefined;
573
+ borderBottomStartRadius?: number | string | undefined;
574
+ borderEndEndRadius?: number | string | undefined;
575
+ borderEndStartRadius?: number | string | undefined;
576
+ borderStartEndRadius?: number | string | undefined;
577
+ borderStartStartRadius?: number | string | undefined;
578
+ borderTopEndRadius?: number | string | undefined;
579
+ borderTopLeftRadius?: number | string | undefined;
580
+ borderTopRightRadius?: number | string | undefined;
581
+ borderTopStartRadius?: number | string | undefined;
582
+ borderStyle?: "solid" | "dotted" | "dashed" | undefined;
583
+ opacity?: number | undefined;
584
+ outlineColor?: ColorValue | undefined;
585
+ outlineOffset?: number | undefined;
586
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
587
+ outlineWidth?: number | undefined;
588
+ elevation?: number | undefined;
589
+ pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
590
+ cursor?: CursorValue | undefined;
591
+ boxShadow?: ReadonlyArray<BoxShadowValue> | string | undefined;
592
+ filter?: ReadonlyArray<FilterFunction> | string | undefined;
593
+ mixBlendMode?: BlendMode | undefined;
594
+ backgroundImage?: ReadonlyArray<BackgroundImageValue> | string | undefined;
595
+ experimental_backgroundImage?: ReadonlyArray<BackgroundImageValue> | string | undefined;
596
+ backgroundSize?: ReadonlyArray<BackgroundSizeValue> | string | undefined;
597
+ experimental_backgroundSize?: ReadonlyArray<BackgroundSizeValue> | string | undefined;
598
+ backgroundPosition?: ReadonlyArray<BackgroundPositionValue> | string | undefined;
599
+ experimental_backgroundPosition?: ReadonlyArray<BackgroundPositionValue> | string | undefined;
600
+ backgroundRepeat?: ReadonlyArray<BackgroundRepeatValue> | string | undefined;
601
+ experimental_backgroundRepeat?: ReadonlyArray<BackgroundRepeatValue> | string | undefined;
602
+ isolation?: "auto" | "isolate" | undefined;
603
+ }>;
604
+ type WebOnlyViewStyle = Readonly<{
605
+ touchAction?: CSSProperties["touchAction"] | undefined;
606
+ }>;
607
+ interface ViewStyle extends LayoutStyle, ShadowStyle, TransformsStyle, ViewStyleBase, WebOnlyViewStyle {}
608
+ type FontWeight = "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black";
609
+ type FontVariant = "small-caps" | "oldstyle-nums" | "lining-nums" | "tabular-nums" | "common-ligatures" | "no-common-ligatures" | "discretionary-ligatures" | "no-discretionary-ligatures" | "historical-ligatures" | "no-historical-ligatures" | "contextual" | "no-contextual" | "proportional-nums" | "stylistic-one" | "stylistic-two" | "stylistic-three" | "stylistic-four" | "stylistic-five" | "stylistic-six" | "stylistic-seven" | "stylistic-eight" | "stylistic-nine" | "stylistic-ten" | "stylistic-eleven" | "stylistic-twelve" | "stylistic-thirteen" | "stylistic-fourteen" | "stylistic-fifteen" | "stylistic-sixteen" | "stylistic-seventeen" | "stylistic-eighteen" | "stylistic-nineteen" | "stylistic-twenty";
610
+ type TextStyleBase = Readonly<{
611
+ color?: ColorValue | undefined;
612
+ fontFamily?: string | undefined;
613
+ fontSize?: number | undefined;
614
+ fontStyle?: "normal" | "italic" | undefined;
615
+ fontWeight?: FontWeight | undefined;
616
+ fontVariant?: ReadonlyArray<FontVariant> | string | undefined;
617
+ fontVariationSettings?: string | Readonly<{
618
+ [axis: string]: number;
619
+ }> | undefined;
620
+ textShadowOffset?: Readonly<{
621
+ width: number;
622
+ height: number;
623
+ }> | undefined;
624
+ textShadowRadius?: number | undefined;
625
+ textShadowColor?: ColorValue | undefined;
626
+ letterSpacing?: number | undefined;
627
+ lineHeight?: number | undefined;
628
+ textAlign?: "auto" | "left" | "right" | "center" | "justify" | "start" | "end" | undefined;
629
+ textAlignVertical?: "auto" | "top" | "bottom" | "center" | undefined;
630
+ includeFontPadding?: boolean | undefined;
631
+ textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
632
+ textDecorationStyle?: "solid" | "double" | "dotted" | "dashed" | "wavy" | undefined;
633
+ textDecorationColor?: ColorValue | undefined;
634
+ textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined;
635
+ userSelect?: "auto" | "text" | "none" | "contain" | "all" | undefined;
636
+ verticalAlign?: "auto" | "top" | "bottom" | "middle" | undefined;
637
+ writingDirection?: "auto" | "ltr" | "rtl" | undefined;
638
+ }>;
639
+ interface TextStyle extends ViewStyle, TextStyleBase {}
640
+ type ImageStyleBase = Readonly<{
641
+ resizeMode?: ImageResizeMode | undefined;
642
+ objectFit?: "cover" | "contain" | "fill" | "scale-down" | "none" | undefined;
643
+ tintColor?: ColorValue | undefined;
644
+ overlayColor?: ColorValue | undefined;
645
+ }>;
646
+ interface ImageStyle extends Omit<ViewStyle, "overflow">, ImageStyleBase {
647
+ readonly overflow?: "visible" | "hidden" | undefined;
648
+ }
649
+ /** Every style key of every component, the type that `StyleSheet.create` checks. */
650
+ type AnyStyle = Omit<TextStyle, keyof ImageStyleBase> & ImageStyleBase;
651
+ type NamedStyles = {
652
+ readonly [name: string]: Partial<AnyStyle>;
653
+ };
187
654
  declare const absoluteFillObject: {
188
655
  readonly position: "absolute";
189
656
  readonly left: 0;
@@ -192,9 +659,9 @@ declare const absoluteFillObject: {
192
659
  readonly bottom: 0;
193
660
  };
194
661
  type AbsoluteFillStyle = typeof absoluteFillObject;
195
- declare const create: <T extends NamedStyles<T>>(styles: T) => T;
196
- declare const flatten: <T extends FlatStyle>(style: StyleProp<T>) => T | undefined;
197
- declare const compose: <T extends FlatStyle>(style1: StyleProp<T>, style2: StyleProp<T>) => StyleProp<T>;
662
+ declare const create: <S extends NamedStyles>(styles: S & NamedStyles) => Readonly<S>;
663
+ declare const flatten: <T extends object>(style: StyleProp<T>) => T | undefined;
664
+ declare const compose: <T>(style1: StyleProp<T>, style2: StyleProp<T>) => StyleProp<T>;
198
665
  export declare const StyleSheet: {
199
666
  readonly absoluteFill: AbsoluteFillStyle;
200
667
  readonly absoluteFillObject: AbsoluteFillStyle;
@@ -205,6 +672,35 @@ export declare const StyleSheet: {
205
672
  };
206
673
  export declare const useColorScheme: () => ColorSchemeName;
207
674
  export declare const useWindowDimensions: () => ScaledSize;
675
+ /**
676
+ * Vibrates the device with `navigator.vibrate`, with Android's rules: the durations apply, and
677
+ * an array starts with a wait.
678
+ */
679
+ export declare const Vibration: {
680
+ vibrate: (pattern?: number | Array<number>, repeat?: boolean) => void;
681
+ cancel: () => void;
682
+ };
683
+ type MeasureOnSuccessCallback = (x: number, y: number, width: number, height: number, pageX: number, pageY: number) => void;
684
+ type MeasureInWindowOnSuccessCallback = (x: number, y: number, width: number, height: number) => void;
685
+ type MeasureLayoutOnSuccessCallback = (left: number, top: number, width: number, height: number) => void;
686
+ type HostMethods = {
687
+ measure: (callback: MeasureOnSuccessCallback) => void;
688
+ measureInWindow: (callback: MeasureInWindowOnSuccessCallback) => void;
689
+ measureLayout: (relativeToNativeNode: Element | number, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void) => void;
690
+ setNativeProps: (nativeProps: object) => void;
691
+ };
692
+ type HostInstance = HTMLElement & HostMethods;
693
+ type ViewInstance = HostInstance;
694
+ /**
695
+ * Compat type. The type of a component that a library gets from a native component spec. Its
696
+ * `ref` is the host instance.
697
+ */
698
+ type HostComponent<Config extends object> = (props: Omit<Config, "ref"> & {
699
+ ref?: Ref<HostInstance> | undefined;
700
+ }) => ReactNode;
701
+ type AccessibilityActionEvent = NativeSyntheticEvent<Readonly<{
702
+ actionName: string;
703
+ }>>;
208
704
  type LayoutRectangle = {
209
705
  x: number;
210
706
  y: number;
@@ -231,7 +727,7 @@ type AccessibilityValue = {
231
727
  };
232
728
  type Role = "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "group" | "heading" | "img" | "link" | "list" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "meter" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "summary" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem";
233
729
  type DOMEventHandlers<T> = Omit<DOMAttributes<T>, "children" | "dangerouslySetInnerHTML">;
234
- type AccessibilityProps = {
730
+ interface AccessibilityProps {
235
731
  [key: `aria-${string}`]: string | number | boolean | undefined;
236
732
  [key: `data-${string}`]: string | number | boolean | undefined;
237
733
  accessible?: boolean | undefined;
@@ -260,11 +756,11 @@ type AccessibilityProps = {
260
756
  "aria-valuemin"?: number | undefined;
261
757
  "aria-valuenow"?: number | undefined;
262
758
  "aria-valuetext"?: string | undefined;
263
- };
264
- type ViewProps = AccessibilityProps & DOMEventHandlers<HTMLElement> & {
759
+ }
760
+ interface ViewProps extends AccessibilityProps, DOMEventHandlers<HTMLElement> {
265
761
  children?: ReactNode;
266
- style?: StyleProp<Record<string, unknown>> | undefined;
267
- ref?: Ref<HTMLElement> | undefined;
762
+ style?: StyleProp<ViewStyle> | undefined;
763
+ ref?: Ref<ViewInstance> | undefined;
268
764
  id?: string | undefined;
269
765
  nativeID?: string | undefined;
270
766
  testID?: string | undefined;
@@ -273,9 +769,122 @@ type ViewProps = AccessibilityProps & DOMEventHandlers<HTMLElement> & {
273
769
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
274
770
  collapsable?: boolean | undefined;
275
771
  onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
772
+ onKeyDown?: DOMEventHandlers<HTMLElement>["onKeyDown"];
276
773
  "aria-level"?: number | undefined;
277
774
  href?: string | undefined;
278
- };
775
+ }
776
+ interface ActivityIndicatorProps extends ViewProps {
777
+ animating?: boolean | undefined;
778
+ color?: string | undefined;
779
+ hidesWhenStopped?: boolean | undefined;
780
+ size?: number | "small" | "large" | undefined;
781
+ }
782
+ export declare function ActivityIndicator(props: ActivityIndicatorProps): ReactElement;
783
+ type Rect = Readonly<{
784
+ bottom?: number | undefined;
785
+ left?: number | undefined;
786
+ right?: number | undefined;
787
+ top?: number | undefined;
788
+ }>;
789
+ type Insets = Rect;
790
+ type RectOrSize = Rect | number;
791
+ type PressabilityConfig = Readonly<{
792
+ cancelable?: boolean | undefined;
793
+ disabled?: boolean | undefined;
794
+ hitSlop?: RectOrSize | undefined;
795
+ pressRectOffset?: RectOrSize | undefined;
796
+ android_disableSound?: boolean | undefined;
797
+ delayHoverIn?: number | undefined;
798
+ delayHoverOut?: number | undefined;
799
+ delayLongPress?: number | undefined;
800
+ delayPressIn?: number | undefined;
801
+ delayPressOut?: number | undefined;
802
+ minPressDuration?: number | undefined;
803
+ onBlur?: ((event: BlurEvent) => unknown) | undefined;
804
+ onFocus?: ((event: FocusEvent) => unknown) | undefined;
805
+ onHoverIn?: ((event: MouseEvent) => unknown) | undefined;
806
+ onHoverOut?: ((event: MouseEvent) => unknown) | undefined;
807
+ onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
808
+ onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
809
+ onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
810
+ onPressMove?: ((event: GestureResponderEvent) => unknown) | undefined;
811
+ onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
812
+ blockNativeResponder?: boolean | undefined;
813
+ }>;
814
+ type PressabilityEventHandlers = Readonly<{
815
+ onBlur: (event: FocusEvent$1<HTMLElement>) => void;
816
+ onClick: (event: MouseEvent$1<HTMLElement>) => void;
817
+ onContextMenu: (event: MouseEvent$1<HTMLElement>) => void;
818
+ onFocus: (event: FocusEvent$1<HTMLElement>) => void;
819
+ onKeyDown: (event: KeyboardEvent$1<HTMLElement>) => void;
820
+ onKeyUp: (event: KeyboardEvent$1<HTMLElement>) => void;
821
+ onPointerCancel: (event: PointerEvent$1<HTMLElement>) => void;
822
+ onPointerDown: (event: PointerEvent$1<HTMLElement>) => void;
823
+ onPointerEnter: (event: PointerEvent$1<HTMLElement>) => void;
824
+ onPointerLeave: (event: PointerEvent$1<HTMLElement>) => void;
825
+ onPointerMove: (event: PointerEvent$1<HTMLElement>) => void;
826
+ onPointerUp: (event: PointerEvent$1<HTMLElement>) => void;
827
+ }>;
828
+ type TouchablePressProps = {
829
+ delayLongPress?: number | undefined;
830
+ delayPressIn?: number | undefined;
831
+ delayPressOut?: number | undefined;
832
+ disabled?: boolean | undefined;
833
+ hitSlop?: RectOrSize | undefined;
834
+ onBlur?: ((event: BlurEvent) => unknown) | undefined;
835
+ onFocus?: ((event: FocusEvent) => unknown) | undefined;
836
+ onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
837
+ onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
838
+ onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
839
+ onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
840
+ pressRetentionOffset?: RectOrSize | undefined;
841
+ rejectResponderTermination?: boolean | undefined;
842
+ touchSoundDisabled?: boolean | undefined;
843
+ };
844
+ type TouchableTVProps = {
845
+ hasTVPreferredFocus?: boolean | undefined;
846
+ nextFocusDown?: number | undefined;
847
+ nextFocusForward?: number | undefined;
848
+ nextFocusLeft?: number | undefined;
849
+ nextFocusRight?: number | undefined;
850
+ nextFocusUp?: number | undefined;
851
+ };
852
+ interface TouchableWithoutFeedbackProps extends AccessibilityProps, TouchablePressProps {
853
+ children?: ReactNode | undefined;
854
+ focusable?: boolean | undefined;
855
+ id?: string | undefined;
856
+ nativeID?: string | undefined;
857
+ testID?: string | undefined;
858
+ onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
859
+ style?: StyleProp<ViewStyle> | undefined;
860
+ }
861
+ interface ButtonProps extends TouchableTVProps {
862
+ title: string;
863
+ onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
864
+ color?: string | undefined;
865
+ disabled?: boolean | undefined;
866
+ testID?: string | undefined;
867
+ ref?: Ref<HostInstance> | undefined;
868
+ accessible?: boolean | undefined;
869
+ accessibilityLabel?: string | undefined;
870
+ accessibilityHint?: string | undefined;
871
+ accessibilityLanguage?: string | undefined;
872
+ accessibilityState?: AccessibilityState | undefined;
873
+ importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
874
+ "aria-busy"?: boolean | undefined;
875
+ "aria-checked"?: boolean | "mixed" | undefined;
876
+ "aria-disabled"?: boolean | undefined;
877
+ "aria-expanded"?: boolean | undefined;
878
+ "aria-label"?: string | undefined;
879
+ "aria-selected"?: boolean | undefined;
880
+ accessibilityActions?: ReadonlyArray<{
881
+ name: string;
882
+ label?: string | undefined;
883
+ }> | undefined;
884
+ onAccessibilityAction?: ((event: unknown) => unknown) | undefined;
885
+ touchSoundDisabled?: boolean | undefined;
886
+ }
887
+ export declare function Button(props: ButtonProps): ReactElement;
279
888
  type NativeScrollPoint = {
280
889
  x: number;
281
890
  y: number;
@@ -303,7 +912,7 @@ type ScrollToOptions = {
303
912
  y?: number | undefined;
304
913
  animated?: boolean | undefined;
305
914
  };
306
- type ScrollViewInstance = HTMLElement & {
915
+ type ScrollViewInstance = HostInstance & {
307
916
  scrollTo: {
308
917
  (options: ScrollToOptions): void;
309
918
  (x: number, y: number): void;
@@ -320,9 +929,9 @@ type ScrollViewInstance = HTMLElement & {
320
929
  getNativeScrollRef: () => HTMLElement;
321
930
  };
322
931
  type ReservedViewProps = "ref" | "onScroll" | "onScrollEnd";
323
- type ScrollViewProps = Omit<ViewProps, ReservedViewProps> & {
932
+ interface ScrollViewProps extends Omit<ViewProps, ReservedViewProps> {
324
933
  ref?: Ref<ScrollViewInstance> | undefined;
325
- contentContainerStyle?: StyleProp<Record<string, unknown>> | undefined;
934
+ contentContainerStyle?: StyleProp<ViewStyle> | undefined;
326
935
  horizontal?: boolean | undefined;
327
936
  scrollEnabled?: boolean | undefined;
328
937
  showsHorizontalScrollIndicator?: boolean | undefined;
@@ -383,7 +992,7 @@ type ScrollViewProps = Omit<ViewProps, ReservedViewProps> & {
383
992
  snapToIntervalMomentum?: boolean | undefined;
384
993
  zoomScale?: number | undefined;
385
994
  onScrollToTop?: ((event: ScrollEvent) => void) | undefined;
386
- };
995
+ }
387
996
  type ViewToken<ItemT = unknown> = {
388
997
  item: ItemT;
389
998
  key: string;
@@ -424,7 +1033,7 @@ type CellRendererProps<ItemT> = {
424
1033
  item: ItemT;
425
1034
  onFocusCapture?: ((event: FocusEvent$1<HTMLElement>) => void) | undefined;
426
1035
  onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
427
- style: StyleProp<Record<string, unknown>> | undefined;
1036
+ style: StyleProp<ViewStyle> | undefined;
428
1037
  };
429
1038
  type ListComponent = ComponentType<Record<string, never>> | ReactElement | null | undefined;
430
1039
  type ListSeparatorProps<ItemT> = {
@@ -463,7 +1072,7 @@ type FlatListInstance<ItemT = unknown> = {
463
1072
  setNativeProps: (props: Record<string, unknown>) => void;
464
1073
  };
465
1074
  type ReservedScrollViewProps = "ref" | "children";
466
- type FlatListProps<ItemT> = Omit<ScrollViewProps, ReservedScrollViewProps> & {
1075
+ interface FlatListProps<ItemT> extends Omit<ScrollViewProps, ReservedScrollViewProps> {
467
1076
  ref?: Ref<FlatListInstance<ItemT>> | undefined;
468
1077
  data: Readonly<ArrayLike<ItemT>> | null | undefined;
469
1078
  renderItem?: ListRenderItem<ItemT> | null | undefined;
@@ -476,15 +1085,15 @@ type FlatListProps<ItemT> = Omit<ScrollViewProps, ReservedScrollViewProps> & {
476
1085
  index: number;
477
1086
  }) | undefined;
478
1087
  numColumns?: number | undefined;
479
- columnWrapperStyle?: StyleProp<Record<string, unknown>> | undefined;
1088
+ columnWrapperStyle?: StyleProp<ViewStyle> | undefined;
480
1089
  inverted?: boolean | null | undefined;
481
1090
  initialScrollIndex?: number | null | undefined;
482
1091
  ItemSeparatorComponent?: ListSeparatorComponent<ItemT>;
483
1092
  ListEmptyComponent?: ListComponent;
484
1093
  ListHeaderComponent?: ListComponent;
485
- ListHeaderComponentStyle?: StyleProp<Record<string, unknown>> | undefined;
1094
+ ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;
486
1095
  ListFooterComponent?: ListComponent;
487
- ListFooterComponentStyle?: StyleProp<Record<string, unknown>> | undefined;
1096
+ ListFooterComponentStyle?: StyleProp<ViewStyle> | undefined;
488
1097
  CellRendererComponent?: ComponentType<CellRendererProps<ItemT>> | null | undefined;
489
1098
  renderScrollComponent?: ((props: ScrollViewProps) => ReactElement<ScrollViewProps>) | undefined;
490
1099
  onEndReached?: ((info: {
@@ -505,18 +1114,18 @@ type FlatListProps<ItemT> = Omit<ScrollViewProps, ReservedScrollViewProps> & {
505
1114
  }) => void) | undefined;
506
1115
  onRefresh?: (() => void) | null | undefined;
507
1116
  refreshing?: boolean | null | undefined;
1117
+ progressViewOffset?: number | undefined;
508
1118
  debug?: boolean | undefined;
509
1119
  disableVirtualization?: boolean | undefined;
510
1120
  initialNumToRender?: number | undefined;
511
1121
  maxToRenderPerBatch?: number | undefined;
512
- progressViewOffset?: number | undefined;
513
1122
  strictMode?: boolean | undefined;
514
1123
  updateCellsBatchingPeriod?: number | undefined;
515
1124
  windowSize?: number | undefined;
516
1125
  legacyImplementation?: boolean | undefined;
517
- };
1126
+ }
518
1127
  export declare function FlatList<ItemT>(props: FlatListProps<ItemT>): ReactElement;
519
- type ImageResizeMode = "cover" | "contain" | "stretch" | "repeat" | "center";
1128
+ type ImageInstance = HostInstance;
520
1129
  type ImageURISource = {
521
1130
  uri?: string | undefined;
522
1131
  bundle?: string | undefined;
@@ -561,7 +1170,7 @@ type ImageSize = {
561
1170
  height: number;
562
1171
  };
563
1172
  type ReservedDOMHandlers$1 = "onLoad" | "onLoadStart" | "onError" | "onProgress";
564
- type ImageProps = AccessibilityProps & Omit<DOMEventHandlers<HTMLElement>, ReservedDOMHandlers$1> & {
1173
+ interface ImageProps extends AccessibilityProps, Omit<DOMEventHandlers<HTMLElement>, ReservedDOMHandlers$1> {
565
1174
  source?: ImageSource | undefined;
566
1175
  src?: string | undefined;
567
1176
  srcSet?: string | undefined;
@@ -578,8 +1187,8 @@ type ImageProps = AccessibilityProps & Omit<DOMEventHandlers<HTMLElement>, Reser
578
1187
  fadeDuration?: number | undefined;
579
1188
  progressiveRenderingEnabled?: boolean | undefined;
580
1189
  loadingIndicatorSource?: ImageURISource | number | undefined;
581
- style?: StyleProp<Record<string, unknown>> | undefined;
582
- ref?: Ref<HTMLElement> | undefined;
1190
+ style?: StyleProp<ImageStyle> | undefined;
1191
+ ref?: Ref<ImageInstance> | undefined;
583
1192
  id?: string | undefined;
584
1193
  nativeID?: string | undefined;
585
1194
  testID?: string | undefined;
@@ -592,7 +1201,7 @@ type ImageProps = AccessibilityProps & Omit<DOMEventHandlers<HTMLElement>, Reser
592
1201
  loading?: "eager" | "lazy" | undefined;
593
1202
  fetchPriority?: "high" | "low" | "auto" | undefined;
594
1203
  decoding?: "sync" | "async" | "auto" | undefined;
595
- };
1204
+ }
596
1205
  type ImageStatics = {
597
1206
  getSize: {
598
1207
  (uri: string): Promise<ImageSize>;
@@ -608,51 +1217,55 @@ type ImageStatics = {
608
1217
  };
609
1218
  declare function ImageComponent(props: ImageProps): ReactElement;
610
1219
  export declare const Image: typeof ImageComponent & ImageStatics;
611
- type Rect = Readonly<{
612
- bottom?: number | undefined;
613
- left?: number | undefined;
614
- right?: number | undefined;
615
- top?: number | undefined;
616
- }>;
617
- type Insets = Rect;
618
- type RectOrSize = Rect | number;
619
- type PressabilityConfig = Readonly<{
620
- cancelable?: boolean | undefined;
621
- disabled?: boolean | undefined;
622
- hitSlop?: RectOrSize | undefined;
623
- pressRectOffset?: RectOrSize | undefined;
624
- android_disableSound?: boolean | undefined;
625
- delayHoverIn?: number | undefined;
626
- delayHoverOut?: number | undefined;
627
- delayLongPress?: number | undefined;
628
- delayPressIn?: number | undefined;
629
- delayPressOut?: number | undefined;
630
- minPressDuration?: number | undefined;
631
- onBlur?: ((event: BlurEvent) => unknown) | undefined;
632
- onFocus?: ((event: FocusEvent) => unknown) | undefined;
633
- onHoverIn?: ((event: MouseEvent) => unknown) | undefined;
634
- onHoverOut?: ((event: MouseEvent) => unknown) | undefined;
635
- onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
636
- onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
637
- onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
638
- onPressMove?: ((event: GestureResponderEvent) => unknown) | undefined;
639
- onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
640
- blockNativeResponder?: boolean | undefined;
641
- }>;
642
- type PressabilityEventHandlers = Readonly<{
643
- onBlur: (event: FocusEvent$1<HTMLElement>) => void;
644
- onClick: (event: MouseEvent$1<HTMLElement>) => void;
645
- onContextMenu: (event: MouseEvent$1<HTMLElement>) => void;
646
- onFocus: (event: FocusEvent$1<HTMLElement>) => void;
647
- onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
648
- onKeyUp: (event: KeyboardEvent<HTMLElement>) => void;
649
- onPointerCancel: (event: PointerEvent<HTMLElement>) => void;
650
- onPointerDown: (event: PointerEvent<HTMLElement>) => void;
651
- onPointerEnter: (event: PointerEvent<HTMLElement>) => void;
652
- onPointerLeave: (event: PointerEvent<HTMLElement>) => void;
653
- onPointerMove: (event: PointerEvent<HTMLElement>) => void;
654
- onPointerUp: (event: PointerEvent<HTMLElement>) => void;
655
- }>;
1220
+ interface KeyboardAvoidingViewProps extends ViewProps {
1221
+ /** How the view moves out of the way of the keyboard. With no value, it doesn't. */
1222
+ behavior?: "height" | "position" | "padding" | undefined;
1223
+ /** The style of the inner view, with the `position` behavior. */
1224
+ contentContainerStyle?: ViewProps["style"];
1225
+ /** `false` stops the view from moving. Defaults to `true`. */
1226
+ enabled?: boolean | undefined;
1227
+ /** The distance between the top of the window and the top of the view. Defaults to 0. */
1228
+ keyboardVerticalOffset?: number | undefined;
1229
+ }
1230
+ /** The element of the outer view. */
1231
+ type KeyboardAvoidingViewInstance = HostInstance;
1232
+ /**
1233
+ * A view that moves out of the way of the keyboard, with the math of React Native 0.88. As on
1234
+ * native, the frame of the view comes from `onLayout`, so its `y` is relative to its parent.
1235
+ * `keyboardVerticalOffset` adds the distance to the top of the window.
1236
+ */
1237
+ export declare function KeyboardAvoidingView(props: KeyboardAvoidingViewProps): ReactElement;
1238
+ type ModalEvent = {
1239
+ nativeEvent: null;
1240
+ };
1241
+ type ModalOrientationChangeEvent = {
1242
+ nativeEvent: {
1243
+ orientation: "portrait" | "landscape";
1244
+ };
1245
+ };
1246
+ type ModalProps = Omit<ViewProps, "ref"> & {
1247
+ ref?: Ref<HTMLDialogElement> | undefined;
1248
+ modalRef?: Ref<HTMLDialogElement> | undefined;
1249
+ visible?: boolean | undefined;
1250
+ transparent?: boolean | undefined;
1251
+ backdropColor?: string | undefined;
1252
+ animationType?: "none" | "slide" | "fade" | undefined;
1253
+ onRequestClose?: ((event: ModalEvent) => void) | undefined;
1254
+ onShow?: ((event: ModalEvent) => void) | undefined;
1255
+ onDismiss?: (() => void) | undefined;
1256
+ allowSwipeDismissal?: boolean | undefined;
1257
+ hardwareAccelerated?: boolean | undefined;
1258
+ navigationBarTranslucent?: boolean | undefined;
1259
+ onOrientationChange?: ((event: ModalOrientationChangeEvent) => void) | undefined;
1260
+ presentationStyle?: "fullScreen" | "pageSheet" | "formSheet" | "overFullScreen" | undefined;
1261
+ statusBarTranslucent?: boolean | undefined;
1262
+ supportedOrientations?: ReadonlyArray<"portrait" | "portrait-upside-down" | "landscape" | "landscape-left" | "landscape-right"> | undefined;
1263
+ };
1264
+ /**
1265
+ * React Native's `Modal` on a `<dialog>` in the top layer. `showModal()` makes the rest of the
1266
+ * page inert, keeps the focus inside, and turns Escape into `onRequestClose`.
1267
+ */
1268
+ export declare function Modal(props: ModalProps): ReactElement | null;
656
1269
  interface PressableStateCallbackType {
657
1270
  readonly pressed: boolean;
658
1271
  readonly hovered: boolean;
@@ -664,11 +1277,10 @@ type PressableAndroidRippleConfig = {
664
1277
  radius?: number | undefined;
665
1278
  foreground?: boolean | undefined;
666
1279
  };
667
- type PressableInstance = HTMLElement;
668
- type ViewStyle = StyleProp<Record<string, unknown>>;
669
- type PressableProps = Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus"> & {
1280
+ type PressableInstance = HostInstance;
1281
+ interface PressableProps extends Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus"> {
670
1282
  children?: ReactNode | ((state: PressableStateCallbackType) => ReactNode) | undefined;
671
- style?: ViewStyle | ((state: PressableStateCallbackType) => ViewStyle) | undefined;
1283
+ style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>) | undefined;
672
1284
  cancelable?: boolean | undefined;
673
1285
  delayHoverIn?: number | undefined;
674
1286
  delayHoverOut?: number | undefined;
@@ -690,8 +1302,21 @@ type PressableProps = Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus
690
1302
  android_ripple?: PressableAndroidRippleConfig | undefined;
691
1303
  testOnly_pressed?: boolean | undefined;
692
1304
  unstable_pressDelay?: number | undefined;
693
- };
1305
+ }
694
1306
  export declare const Pressable: NamedExoticComponent<PressableProps>;
1307
+ interface RefreshControlProps extends ViewProps {
1308
+ refreshing: boolean;
1309
+ onRefresh?: (() => void | Promise<void>) | undefined;
1310
+ progressViewOffset?: number | undefined;
1311
+ colors?: ReadonlyArray<string> | undefined;
1312
+ enabled?: boolean | undefined;
1313
+ progressBackgroundColor?: string | undefined;
1314
+ size?: "default" | "large" | undefined;
1315
+ tintColor?: string | undefined;
1316
+ title?: string | undefined;
1317
+ titleColor?: string | undefined;
1318
+ }
1319
+ export declare function RefreshControl(props: RefreshControlProps): ReactElement;
695
1320
  export declare function ScrollView(props: ScrollViewProps): ReactElement;
696
1321
  type StatusBarStyle = "default" | "light-content" | "dark-content";
697
1322
  type StatusBarAnimation = "none" | "fade" | "slide";
@@ -717,11 +1342,35 @@ type StatusBarStatics = {
717
1342
  replaceStackEntry: (entry: StatusBarProps, props: StatusBarProps) => StatusBarProps;
718
1343
  };
719
1344
  export declare const StatusBar: typeof StatusBarComponent & StatusBarStatics;
720
- type PressEvent = SyntheticEvent<HTMLElement>;
721
- type TextProps = AccessibilityProps & DOMEventHandlers<HTMLElement> & {
1345
+ type SwitchChangeEventData = {
1346
+ value: boolean;
1347
+ target: EventTarget | null;
1348
+ };
1349
+ type SwitchChangeEvent = NativeSyntheticEvent<SwitchChangeEventData>;
1350
+ interface SwitchProps extends Omit<ViewProps, "children" | "onChange" | "ref"> {
1351
+ ref?: Ref<HTMLInputElement> | undefined;
1352
+ value?: boolean | undefined;
1353
+ disabled?: boolean | undefined;
1354
+ onChange?: ((event: SwitchChangeEvent) => unknown) | undefined;
1355
+ onValueChange?: ((value: boolean) => unknown) | undefined;
1356
+ thumbColor?: string | undefined;
1357
+ trackColor?: Readonly<{
1358
+ false?: string | null | undefined;
1359
+ true?: string | null | undefined;
1360
+ }> | undefined;
1361
+ ios_backgroundColor?: string | undefined;
1362
+ onTintColor?: string | undefined;
1363
+ thumbTintColor?: string | undefined;
1364
+ tintColor?: string | undefined;
1365
+ }
1366
+ export declare function Switch(props: SwitchProps): ReactElement;
1367
+ type TextInstance = HostInstance;
1368
+ /** @deprecated Use `GestureResponderEvent`, the type that React Native gives `onPress`. */
1369
+ type PressEvent = GestureResponderEvent;
1370
+ interface TextProps extends AccessibilityProps, DOMEventHandlers<HTMLElement> {
722
1371
  children?: ReactNode;
723
- style?: StyleProp<Record<string, unknown>> | undefined;
724
- ref?: Ref<HTMLElement> | undefined;
1372
+ style?: StyleProp<TextStyle> | undefined;
1373
+ ref?: Ref<TextInstance> | undefined;
725
1374
  id?: string | undefined;
726
1375
  nativeID?: string | undefined;
727
1376
  testID?: string | undefined;
@@ -732,7 +1381,12 @@ type TextProps = AccessibilityProps & DOMEventHandlers<HTMLElement> & {
732
1381
  selectable?: boolean | undefined;
733
1382
  selectionColor?: string | undefined;
734
1383
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
735
- onPress?: ((event: PressEvent) => void) | undefined;
1384
+ onPress?: ((event: GestureResponderEvent) => void) | undefined;
1385
+ onPressIn?: ((event: GestureResponderEvent) => void) | undefined;
1386
+ onPressOut?: ((event: GestureResponderEvent) => void) | undefined;
1387
+ onLongPress?: ((event: GestureResponderEvent) => void) | undefined;
1388
+ pressRetentionOffset?: RectOrSize | undefined;
1389
+ suppressHighlighting?: boolean | undefined;
736
1390
  onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
737
1391
  "aria-level"?: number | undefined;
738
1392
  href?: string | undefined;
@@ -740,7 +1394,7 @@ type TextProps = AccessibilityProps & DOMEventHandlers<HTMLElement> & {
740
1394
  rel?: string | undefined;
741
1395
  download?: string | boolean | undefined;
742
1396
  lang?: string | undefined;
743
- };
1397
+ }
744
1398
  export declare const TextAncestorContext: Context<boolean>;
745
1399
  export declare function Text(props: TextProps): ReactElement;
746
1400
  type TextInputSelection = {
@@ -778,18 +1432,19 @@ type InputMode = "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "e
778
1432
  type ReturnKeyType = "done" | "go" | "next" | "search" | "send" | "none" | "previous" | "default" | "emergency-call" | "google" | "join" | "route" | "yahoo";
779
1433
  type EnterKeyHint = "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
780
1434
  type SubmitBehavior = "submit" | "blurAndSubmit" | "newline";
781
- type TextInputInstance = HTMLInputElement & HTMLTextAreaElement & {
1435
+ type TextInputInstance = HTMLInputElement & HTMLTextAreaElement & Omit<HostMethods, "setNativeProps"> & {
782
1436
  clear: () => void;
783
1437
  isFocused: () => boolean;
784
1438
  getNativeRef: () => HTMLInputElement | HTMLTextAreaElement;
785
1439
  setNativeProps: (props: {
786
1440
  text?: string | undefined;
1441
+ style?: StyleProp<TextStyle> | undefined;
787
1442
  }) => void;
788
1443
  };
789
1444
  type ReservedDOMHandlers = "onChange" | "onFocus" | "onBlur" | "onKeyPress" | "onSelect" | "onScroll" | "onInput";
790
- type TextInputProps = AccessibilityProps & Omit<DOMEventHandlers<HTMLElement>, ReservedDOMHandlers> & {
1445
+ interface TextInputProps extends AccessibilityProps, Omit<DOMEventHandlers<HTMLElement>, ReservedDOMHandlers> {
791
1446
  ref?: Ref<TextInputInstance> | undefined;
792
- style?: StyleProp<Record<string, unknown>> | undefined;
1447
+ style?: StyleProp<TextStyle> | undefined;
793
1448
  id?: string | undefined;
794
1449
  nativeID?: string | undefined;
795
1450
  testID?: string | undefined;
@@ -858,7 +1513,7 @@ type TextInputProps = AccessibilityProps & Omit<DOMEventHandlers<HTMLElement>, R
858
1513
  textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
859
1514
  underlineColorAndroid?: unknown;
860
1515
  verticalAlign?: "auto" | "top" | "bottom" | "middle" | undefined;
861
- };
1516
+ }
862
1517
  type TextInputState = {
863
1518
  currentlyFocusedInput: () => HTMLInputElement | HTMLTextAreaElement | null;
864
1519
  focusTextInput: (input: HTMLElement | null | undefined) => void;
@@ -868,7 +1523,75 @@ declare function TextInputComponent(props: TextInputProps): ReactElement;
868
1523
  export declare const TextInput: typeof TextInputComponent & {
869
1524
  State: TextInputState;
870
1525
  };
1526
+ interface TouchableHighlightProps extends Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus">, TouchablePressProps, TouchableTVProps {
1527
+ children?: ReactNode | undefined;
1528
+ style?: StyleProp<ViewStyle> | undefined;
1529
+ activeOpacity?: number | undefined;
1530
+ underlayColor?: string | undefined;
1531
+ onShowUnderlay?: (() => void) | undefined;
1532
+ onHideUnderlay?: (() => void) | undefined;
1533
+ testOnly_pressed?: boolean | undefined;
1534
+ }
1535
+ export declare function TouchableHighlight(props: TouchableHighlightProps): ReactElement;
1536
+ type ThemeAttributeBackgroundPropType = Readonly<{
1537
+ type: "ThemeAttrAndroid";
1538
+ attribute: "selectableItemBackground" | "selectableItemBackgroundBorderless";
1539
+ rippleRadius: number | null | undefined;
1540
+ }>;
1541
+ type RippleBackgroundPropType = Readonly<{
1542
+ type: "RippleAndroid";
1543
+ color: ProcessedColorValue | null | undefined;
1544
+ borderless: boolean;
1545
+ rippleRadius: number | null | undefined;
1546
+ }>;
1547
+ type BackgroundPropType = ThemeAttributeBackgroundPropType | RippleBackgroundPropType;
1548
+ type TouchableNativeFeedbackProps = TouchableWithoutFeedbackProps & TouchableTVProps & {
1549
+ background?: BackgroundPropType | undefined;
1550
+ useForeground?: boolean | undefined;
1551
+ };
1552
+ type TouchableNativeFeedbackStatics = {
1553
+ SelectableBackground: (rippleRadius?: number | null) => ThemeAttributeBackgroundPropType;
1554
+ SelectableBackgroundBorderless: (rippleRadius?: number | null) => ThemeAttributeBackgroundPropType;
1555
+ Ripple: (color: string, borderless: boolean, rippleRadius?: number | null) => RippleBackgroundPropType;
1556
+ canUseNativeForeground: () => boolean;
1557
+ };
1558
+ export declare const TouchableNativeFeedback: ((props: TouchableNativeFeedbackProps) => ReactElement) & TouchableNativeFeedbackStatics;
1559
+ type TouchableOpacityProps = Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus"> & TouchablePressProps & TouchableTVProps & {
1560
+ children?: ReactNode | undefined;
1561
+ style?: StyleProp<ViewStyle> | undefined;
1562
+ activeOpacity?: number | undefined;
1563
+ };
1564
+ export declare function TouchableOpacity(props: TouchableOpacityProps): ReactElement;
1565
+ export declare function TouchableWithoutFeedback(props: TouchableWithoutFeedbackProps): ReactElement;
871
1566
  export declare function View(props: ViewProps): ReactElement;
1567
+ type CreateElementProps = Readonly<Record<string, unknown>>;
1568
+ /**
1569
+ * Compat export. Renders `type` with React Native props: `style` compiles to class names, and
1570
+ * the accessibility props become ARIA attributes. Every other prop goes to the element as it
1571
+ * is. Libraries such as `react-native-svg` import it from `react-native` on the web.
1572
+ */
1573
+ export declare const unstable_createElement: (type: ElementType, props?: CreateElementProps | null) => ReactElement;
1574
+ /**
1575
+ * Compat export. On native it returns the tag of a view. On the web it returns the DOM element
1576
+ * of a ref, of an element, or of a scroll component. A number comes back as it is. A class
1577
+ * component instance gives `null`, because React has no `findDOMNode`.
1578
+ */
1579
+ export declare const findNodeHandle: (componentOrHandle: unknown) => Element | number | null;
1580
+ /**
1581
+ * Compat type. The base type of a native module spec. A library extends it for the module that
1582
+ * it reads with `TurboModuleRegistry`.
1583
+ */
1584
+ interface TurboModule {
1585
+ readonly getConstants?: (() => {}) | undefined;
1586
+ }
1587
+ /**
1588
+ * Compat export. A browser has no native modules, so `get` always returns `null`. A library
1589
+ * that reads its native module at import time then takes its JavaScript path.
1590
+ */
1591
+ export declare const TurboModuleRegistry: {
1592
+ get<T = unknown>(name: string): T | null;
1593
+ getEnforcing<T = unknown>(name: string): T;
1594
+ };
872
1595
  export declare function usePressability(config: PressabilityConfig): PressabilityEventHandlers;
873
1596
  export declare function usePressability(config: PressabilityConfig | null | undefined): PressabilityEventHandlers | null;
874
1597
  declare global {
@@ -878,5 +1601,5 @@ declare global {
878
1601
  */
879
1602
  const __DEV__: boolean;
880
1603
  }
881
- export type { AbsoluteFillStyle, AccessibilityAnnouncementFinishedEvent, AccessibilityChangeEvent, AccessibilityChangeEventName, AccessibilityEventSubscription, AccessibilityProps, AccessibilityState, AccessibilityValue, AppearanceListener, AppearancePreferences, BackHandlerSubscription, BackPressHandler, BlurEvent, CellRendererProps, ColorSchemeName, DOMEventHandlers, DimensionsChangeHandler, DimensionsValue, EmitterSubscription, EnterKeyHint, FlatListInstance, FlatListProps, FocusEvent, GestureResponderEvent, GestureResponderHandlers, I18nManagerConstants, ImageErrorEvent, ImageLoadEvent, ImageLoadEventData, ImageProgressEvent, ImageProps, ImageResizeMode, ImageResolvedAssetSource, ImageSize, ImageSource, ImageStatics, ImageURISource, InputMode, Insets, KeyboardType, LayoutChangeEvent, LayoutRectangle, ListRenderItem, ListRenderItemInfo, ListSeparatorComponent, ListSeparatorProps, ListSeparators, MouseEvent, NativeEventSubscription, NativeScrollEvent, NativeScrollPoint, NativeScrollRectangle, NativeScrollSize, NativeSyntheticEvent, NativeTouchEvent, PanResponderCallbacks, PanResponderGestureState, PanResponderInstance, PlatformOSType, PlatformSelectSpec, PlatformType, PressEvent, PressabilityConfig, PressabilityEventHandlers, PressableAndroidRippleConfig, PressableInstance, PressableProps, PressableStateCallbackType, ProcessedColorValue, ReturnKeyType, Role, ScaledSize, ScrollEvent, ScrollToIndexParams, ScrollToItemParams, ScrollToOffsetParams, ScrollToOptions, ScrollViewInstance, ScrollViewProps, StatusBarAnimation, StatusBarProps, StatusBarStatics, StatusBarStyle, StyleProp, SubmitBehavior, TextInputChangeEvent, TextInputChangeEventData, TextInputContentSizeChangeEvent, TextInputEndEditingEvent, TextInputFocusEvent, TextInputInstance, TextInputKeyPressEvent, TextInputProps, TextInputScrollEvent, TextInputSelection, TextInputSelectionChangeEvent, TextInputState, TextInputSubmitEditingEvent, TextProps, ViewProps, ViewToken, ViewabilityConfig, ViewabilityConfigCallbackPair, ViewabilityConfigCallbackPairs, ViewableItemsChangedInfo };
1604
+ export type { AbsoluteFillStyle, AccessibilityActionEvent, AccessibilityAnnouncementFinishedEvent, AccessibilityChangeEvent, AccessibilityChangeEventName, AccessibilityEventSubscription, AccessibilityProps, AccessibilityState, AccessibilityValue, ActivityIndicatorProps, AlertButton, AlertButtonStyle, AlertOptions, AlertType, AndroidKeyboardEvent, AppStateEvent, AppStateStatus, AppearanceListener, AppearancePreferences, BackHandlerSubscription, BackPressHandler, BlurEvent, BoxShadowValue, ButtonProps, CellRendererProps, ColorSchemeName, ColorValue, CreateElementProps, CursorValue, DOMEventHandlers, DimensionValue, DimensionsChangeHandler, DimensionsValue, DropShadowValue, EdgeInsetsValue, EmitterSubscription, EnterKeyHint, EventSubscription, FilterFunction, FlatListInstance, FlatListProps, FocusEvent, FontVariant, GestureResponderEvent, GestureResponderHandlers, HostComponent, HostInstance, HostMethods, I18nManagerConstants, IOSKeyboardEvent, ImageErrorEvent, ImageInstance, ImageLoadEvent, ImageLoadEventData, ImageProgressEvent, ImageProps, ImageResizeMode, ImageResolvedAssetSource, ImageSize, ImageSource, ImageStatics, ImageStyle, ImageURISource, InputMode, Insets, KeyboardAvoidingViewInstance, KeyboardAvoidingViewProps, KeyboardEvent, KeyboardEventEasing, KeyboardEventName, KeyboardMetrics, KeyboardType, LayoutChangeEvent, LayoutRectangle, ListRenderItem, ListRenderItemInfo, ListSeparatorComponent, ListSeparatorProps, ListSeparators, MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, ModalEvent, ModalOrientationChangeEvent, ModalProps, MouseEvent, NativeColorValue, NativeEventSubscription, NativeScrollEvent, NativeScrollPoint, NativeScrollRectangle, NativeScrollSize, NativeSyntheticEvent, NativeTouchEvent, OpaqueColorValue, PanResponderCallbacks, PanResponderGestureState, PanResponderInstance, PlatformOSType, PlatformSelectSpec, PlatformType, PointValue, PointerEvent, PressEvent, PressabilityConfig, PressabilityEventHandlers, PressableAndroidRippleConfig, PressableInstance, PressableProps, PressableStateCallbackType, ProcessedColorValue, RefreshControlProps, ReturnKeyType, Role, ScaledSize, ScrollEvent, ScrollToIndexParams, ScrollToItemParams, ScrollToOffsetParams, ScrollToOptions, ScrollViewInstance, ScrollViewProps, ShareAction, ShareContent, ShareOptions, StatusBarAnimation, StatusBarProps, StatusBarStatics, StatusBarStyle, StyleProp, SubmitBehavior, SwitchChangeEvent, SwitchChangeEventData, SwitchProps, TargetedEvent, TextInputChangeEvent, TextInputChangeEventData, TextInputContentSizeChangeEvent, TextInputEndEditingEvent, TextInputFocusEvent, TextInputInstance, TextInputKeyPressEvent, TextInputProps, TextInputScrollEvent, TextInputSelection, TextInputSelectionChangeEvent, TextInputState, TextInputSubmitEditingEvent, TextInstance, TextProps, TextStyle, TouchableHighlightProps, TouchableNativeFeedbackProps, TouchableOpacityProps, TouchableWithoutFeedbackProps, TransformsStyle, TurboModule, ViewInstance, ViewProps, ViewStyle, ViewToken, ViewabilityConfig, ViewabilityConfigCallbackPair, ViewabilityConfigCallbackPairs, ViewableItemsChangedInfo };
882
1605
  //# sourceMappingURL=index.d.ts.map