forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathReactNativeApi.d.ts
More file actions
6191 lines (6188 loc) · 191 KB
/
ReactNativeApi.d.ts
File metadata and controls
6191 lines (6188 loc) · 191 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<b56aa13d53b10140225651b9701de96d>>
*
* This file was generated by scripts/build-types/index.js.
*/
// ----------------------------------------------------------------------------
// JavaScript API snapshot for react-native.
//
// This snapshot captures the public JavaScript API of React Native, based on
// types exported by packages/react-native/index.js.flow.
//
// Modifications to this file indicate changes to the shape of JavaScript
// values and types that can be imported from the react-native package.
// ----------------------------------------------------------------------------
/* eslint-disable redundant-undefined/redundant-undefined */
import * as React from "react"
declare const $$AndroidSwitchNativeComponent: NativeType
declare const $$AnimatedFlatList: <ItemT = any>(
props: Omit<AnimatedProps<FlatListProps<ItemT>>, "ref"> & {
ref?: React.Ref<FlatList<ItemT>>
},
) => React.ReactNode
declare const $$AnimatedImage: AnimatedComponentType<
React.JSX.LibraryManagedAttributes<
typeof Image,
React.ComponentProps<typeof Image>
>,
React.ComponentRef<typeof Image>
>
declare const $$AnimatedImplementation: {
add: typeof addImpl
attachNativeEvent: typeof attachNativeEventImpl
Color: typeof AnimatedColor_default
createAnimatedComponent: typeof createAnimatedComponent_default
decay: typeof decayImpl
delay: typeof delayImpl
diffClamp: typeof diffClampImpl
divide: typeof divideImpl
event: typeof eventImpl
Event: typeof AnimatedEvent
forkEvent: typeof forkEventImpl
Interpolation: typeof AnimatedInterpolation_default
loop: typeof loopImpl
modulo: typeof moduloImpl
multiply: typeof multiplyImpl
Node: typeof AnimatedNode_default
parallel: typeof parallelImpl
sequence: typeof sequenceImpl
spring: typeof springImpl
stagger: typeof staggerImpl
subtract: typeof subtractImpl
timing: typeof timingImpl
unforkEvent: typeof unforkEventImpl
Value: typeof AnimatedValue_default
ValueXY: typeof AnimatedValueXY_default
}
declare const $$AnimatedScrollView: typeof AnimatedScrollView_default
declare const $$AnimatedSectionList: <ItemT = any, SectionT = any>(
props: Omit<AnimatedProps<SectionListProps<ItemT, SectionT>>, "ref"> & {
ref?: React.Ref<SectionList<ItemT, SectionT>>
},
) => React.ReactNode
declare const $$AnimatedText: AnimatedComponentType<
TextProps,
React.ComponentRef<typeof Text>
>
declare const $$AnimatedView: AnimatedComponentType<
ViewProps,
React.ComponentRef<typeof View>
>
declare const $$flattenStyle: typeof flattenStyle_default
declare const $$ImageViewNativeComponent: typeof ImageViewNativeComponent_default
declare const $$index: {
keyExtractor: typeof keyExtractor
get FillRateHelper(): FillRateHelperT
get ViewabilityHelper(): ViewabilityHelperT
get VirtualizedList(): VirtualizedListT
get VirtualizedListContextResetter(): VirtualizedListContextResetterT
get VirtualizedSectionList(): AnyVirtualizedSectionList
}
declare const $$NativeDeviceInfo: typeof NativeDeviceInfo_default
declare const $$NativeDialogManagerAndroid: null | Spec | undefined
declare const $$ProgressBarAndroidNativeComponent: HostComponent<AndroidProgressBarNativeProps>
declare const $$ScrollViewContext: typeof ScrollViewContext_default
declare const $$ScrollViewNativeComponent: typeof ScrollViewNativeComponent_default
declare const $$SwitchNativeComponent: ComponentType
declare const $$TextInlineImageNativeComponent: typeof TextInlineImage_default
declare const $$ViewNativeComponent: typeof ViewNativeComponent_default
declare const absoluteFill: any
declare const absoluteFillObject: {
readonly bottom: 0
readonly left: 0
readonly position: "absolute"
readonly right: 0
readonly top: 0
}
declare const AccessibilityInfo: typeof AccessibilityInfo_default
declare const AccessibilityInfo_default: {
addEventListener<K extends keyof AccessibilityEventDefinitions>(
eventName: K,
handler: (...$$REST$$: AccessibilityEventDefinitions[K]) => void,
): EventSubscription
announceForAccessibility(announcement: string): void
announceForAccessibilityWithOptions(
announcement: string,
options: {
queue?: boolean
},
): void
getRecommendedTimeoutMillis(originalTimeout: number): Promise<number>
isAccessibilityServiceEnabled(): Promise<boolean>
isBoldTextEnabled(): Promise<boolean>
isDarkerSystemColorsEnabled(): Promise<boolean>
isGrayscaleEnabled(): Promise<boolean>
isHighTextContrastEnabled(): Promise<boolean>
isInvertColorsEnabled(): Promise<boolean>
isReduceMotionEnabled(): Promise<boolean>
isReduceTransparencyEnabled(): Promise<boolean>
isScreenReaderEnabled(): Promise<boolean>
prefersCrossFadeTransitions(): Promise<boolean>
sendAccessibilityEvent(
handle: HostInstance,
eventType: AccessibilityEventTypes,
): void
setAccessibilityFocus(reactTag: number): void
}
declare const ActionSheetIOS: typeof ActionSheetIOS_default
declare const ActionSheetIOS_default: {
dismissActionSheet: () => void
showActionSheetWithOptions(
options: ActionSheetIOSOptions,
callback: (buttonIndex: number) => void,
): void
showShareActionSheetWithOptions(
options: ShareActionSheetIOSOptions,
failureCallback: ((error: ShareActionSheetError) => void) | Function,
successCallback:
| ((success: boolean, method: null | string | undefined) => void)
| Function,
): void
}
declare const ActivityIndicator: typeof ActivityIndicator_default
declare const ActivityIndicator_default: (
props: ActivityIndicatorProps & {
ref?: React.Ref<HostComponent<never>>
},
) => React.ReactNode
declare const add: typeof $$AnimatedImplementation.add
declare const addImpl: (
a: AnimatedNode_default | number,
b: AnimatedNode_default | number,
) => AnimatedAddition_default
declare const AnimatedScrollView_default: AnimatedComponentType<
ScrollViewProps,
AnimatedScrollViewInstance
>
declare const AppState: typeof AppState_default
declare const AppState_default: AppStateImpl
declare const attachNativeEvent: typeof $$AnimatedImplementation.attachNativeEvent
declare const BackHandler: typeof BackHandler_default
declare const BackHandler_default: TBackHandler
declare const Button: typeof Button_default
declare const Button_default: (
props: ButtonProps & {
ref?: React.Ref<ButtonRef>
},
) => React.ReactNode
declare const Clipboard: {
getString(): Promise<string>
setString(content: string): void
}
declare const codegenNativeCommands: typeof codegenNativeCommands_default
declare const codegenNativeComponent: typeof codegenNativeComponent_default
declare const compose: typeof composeStyles_default
declare const create: <S extends ____Styles_Internal>(
obj: S & ____Styles_Internal,
) => Readonly<S>
declare const createAnimatedComponent: typeof $$AnimatedImplementation.createAnimatedComponent
declare const decay: typeof $$AnimatedImplementation.decay
declare const decayImpl: (
value:
| AnimatedColor_default
| AnimatedValue_default
| AnimatedValueXY_default,
config: DecayAnimationConfig,
) => CompositeAnimation
declare const delay: typeof $$AnimatedImplementation.delay
declare const delayImpl: (time: number) => CompositeAnimation
declare const DeviceEventEmitter: IEventEmitter<RCTDeviceEventDefinitions>
declare const DeviceInfo: typeof $$NativeDeviceInfo
declare const DevMenu: typeof DevMenu_default
declare const DevMenu_default: DevMenuStatic
declare const DevSettings: typeof DevSettings_default
declare let DevSettings_default: {
addMenuItem(title: string, handler: () => unknown): void
onFastRefresh(): void
reload(reason?: string): void
}
declare const diffClamp: typeof $$AnimatedImplementation.diffClamp
declare const diffClampImpl: (
a: AnimatedNode_default,
min: number,
max: number,
) => AnimatedDiffClamp_default
declare const divide: typeof $$AnimatedImplementation.divide
declare const divideImpl: (
a: AnimatedNode_default | number,
b: AnimatedNode_default | number,
) => AnimatedDivision_default
declare const DrawerLayoutAndroid: typeof DrawerLayoutAndroid_default
declare const DynamicColorIOS: (tuple: DynamicColorIOSTuple) => ColorValue
declare const Easing: typeof EasingStatic_default
declare const EasingStatic_default: {
back(s?: number): EasingFunction
bezier(x1: number, y1: number, x2: number, y2: number): EasingFunction
bounce(t: number): number
circle(t: number): number
cubic(t: number): number
ease(t: number): number
elastic(bounciness?: number): EasingFunction
exp(t: number): number
in(easing: EasingFunction): EasingFunction
inOut(easing: EasingFunction): EasingFunction
linear(t: number): number
out(easing: EasingFunction): EasingFunction
poly(n: number): EasingFunction
quad(t: number): number
sin(t: number): number
step0(n: number): number
step1(n: number): number
}
declare const event: typeof $$AnimatedImplementation.event
declare const eventImpl: <T>(
argMapping: ReadonlyArray<Mapping | null | undefined>,
config: EventConfig<T>,
) => any
declare const flatten: typeof $$flattenStyle
declare const forkEvent: typeof $$AnimatedImplementation.forkEvent
declare const hairlineWidth: number
declare const I18nManager: {
doLeftAndRightSwapInRTL: I18nManagerConstants["doLeftAndRightSwapInRTL"]
isRTL: I18nManagerConstants["isRTL"]
allowRTL: (shouldAllow: boolean) => void
forceRTL: (shouldForce: boolean) => void
getConstants: () => I18nManagerConstants
swapLeftAndRightInRTL: (flipStyles: boolean) => void
}
declare const Image: ImageType
declare const ImageViewNativeComponent_default: HostComponent<ImageHostComponentProps>
declare const InputAccessoryView: typeof InputAccessoryView_default
declare const InputAccessoryView_default: React.ComponentType<InputAccessoryViewProps>
declare const InteractionManager: typeof InteractionManager_default
declare const InteractionManager_default: typeof InteractionManagerImpl
declare const InteractionManagerImpl: {
Events: {
interactionComplete: "interactionComplete"
interactionStart: "interactionStart"
}
addListener: (
eventType: string,
listener: (...args: any) => unknown,
context: unknown,
) => EventSubscription
clearInteractionHandle(handle: Handle): void
createInteractionHandle(): Handle
runAfterInteractions(task: null | Task | undefined): {
cancel: () => void
then: <U>(
onFulfill?:
| (($$PARAM_0$$: void) => (Promise<U> | U) | undefined)
| undefined,
onReject?: ((error: unknown) => (Promise<U> | U) | undefined) | undefined,
) => Promise<U>
}
setDeadline(deadline: number): void
}
declare const Keyboard: typeof Keyboard_default
declare const Keyboard_default: KeyboardImpl
declare const LayoutAnimation: typeof LayoutAnimation_default
declare const LayoutAnimation_default: {
configureNext: typeof configureNext
create: typeof createLayoutAnimation
Presets: typeof Presets
Properties: LayoutAnimationProperties
setEnabled: typeof setLayoutAnimationEnabled
Types: LayoutAnimationTypes
easeInEaseOut: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void
linear: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void
spring: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void
checkConfig(...args: Array<unknown>): void
}
declare const Linking: typeof Linking_default
declare const Linking_default: LinkingImpl
declare const LogBox: ILogBox
declare const loop: typeof $$AnimatedImplementation.loop
declare const loopImpl: (
animation: CompositeAnimation,
$$PARAM_1$$?: LoopAnimationConfig,
) => CompositeAnimation
declare const Modal: typeof Wrapper_default
declare const modulo: typeof $$AnimatedImplementation.modulo
declare const moduloImpl: (
a: AnimatedNode_default,
modulus: number,
) => AnimatedModulo_default
declare const multiply: typeof $$AnimatedImplementation.multiply
declare const multiplyImpl: (
a: AnimatedNode_default | number,
b: AnimatedNode_default | number,
) => AnimatedMultiplication_default
declare const NativeAppEventEmitter: typeof RCTNativeAppEventEmitter_default
declare const NativeDeviceInfo_default: {
getConstants(): DeviceInfoConstants
}
declare const NativeDialogManagerAndroid: typeof $$NativeDialogManagerAndroid
declare const NativeModules: typeof NativeModules_default
declare let NativeModules_default: {
[moduleName: string]: any
}
declare const NativeText: HostComponent<NativeTextProps>
declare const NativeTouchable:
| typeof TouchableNativeFeedback
| typeof TouchableOpacity
declare const NativeVirtualText: HostComponent<NativeTextProps>
declare const Networking: typeof RCTNetworking_default
declare const PanResponder: typeof PanResponder_default
declare const PanResponder_default: {
create(config: PanResponderCallbacks): {
panHandlers: GestureResponderHandlerMethods
getInteractionHandle: () => number | undefined
}
}
declare const parallel: typeof $$AnimatedImplementation.parallel
declare const parallelImpl: (
animations: Array<CompositeAnimation>,
config?: null | ParallelConfig | undefined,
) => CompositeAnimation
declare const PermissionsAndroid: typeof PermissionsAndroidInstance_default
declare const PermissionsAndroidInstance_default: PermissionsAndroidImpl
declare const Platform: PlatformType
declare const Presets: {
easeInEaseOut: LayoutAnimationConfig
linear: LayoutAnimationConfig
spring: LayoutAnimationConfig
}
declare const Pressable: (
props: PressableProps & {
ref?: React.Ref<React.ComponentRef<typeof View>>
},
) => React.ReactNode
declare const processColor: typeof processColor_default
declare const ProgressBarAndroid: typeof ProgressBarAndroid_default
declare let ProgressBarAndroid_default: (
props: Omit_2<
Omit_2<ProgressBarAndroidProps, never>,
keyof {
ref?: React.Ref<React.ComponentRef<ProgressBarAndroidNativeComponentType>>
}
> & {
ref?: React.Ref<React.ComponentRef<ProgressBarAndroidNativeComponentType>>
},
) => React.ReactNode
declare const RCTNativeAppEventEmitter_default: typeof DeviceEventEmitter
declare const RCTNetworking_default: {
abortRequest(requestId: number): void
addListener<K extends keyof RCTNetworkingEventDefinitions>(
eventType: K,
listener: (...$$REST$$: RCTNetworkingEventDefinitions[K]) => unknown,
context?: unknown,
): EventSubscription
clearCookies(callback: (result: boolean) => void): void
sendRequest(
method: string,
trackingName: string | void,
url: string,
headers: {},
data: RequestBody,
responseType: NativeResponseType,
incrementalUpdates: boolean,
timeout: number,
callback: (requestId: number) => void,
withCredentials: boolean,
): void
}
declare const registerCallableModule: typeof registerCallableModule_default
declare const registerCallableModule_default: RegisterCallableModule
declare const requireNativeComponent: typeof requireNativeComponent_default
declare const requireNativeComponent_default: <T extends {}>(
uiViewClassName: string,
) => HostComponent<T>
declare const RootTagContext: React.Context<RootTag>
declare const SafeAreaView: typeof SafeAreaView_default
declare const SafeAreaView_default: (
props: ViewProps & {
ref?: React.Ref<React.ComponentRef<typeof View>>
},
) => React.ReactNode
declare const ScrollView: typeof ScrollViewWrapper & ScrollViewComponentStatics
declare const ScrollViewContext_default: React.Context<Value>
declare const ScrollViewNativeComponent_default: HostComponent<ScrollViewNativeProps>
declare const ScrollViewWrapper: (
props: ScrollViewProps & {
ref?: React.Ref<PublicScrollViewInstance>
},
) => React.ReactNode
declare const sequence: typeof $$AnimatedImplementation.sequence
declare const sequenceImpl: (
animations: Array<CompositeAnimation>,
) => CompositeAnimation
declare const setStyleAttributePreprocessor: (
property: string,
process: (nextProp: any) => any,
) => void
declare const Settings: typeof Settings_default
declare let Settings_default: {
clearWatch(watchId: number): void
get(key: string): any
set(settings: Object): void
watchKeys(keys: Array<string> | string, callback: () => void): number
}
declare const spring: typeof $$AnimatedImplementation.spring
declare const springImpl: (
value:
| AnimatedColor_default
| AnimatedValue_default
| AnimatedValueXY_default,
config: SpringAnimationConfig,
) => CompositeAnimation
declare const stagger: typeof $$AnimatedImplementation.stagger
declare const staggerImpl: (
time: number,
animations: Array<CompositeAnimation>,
) => CompositeAnimation
declare const States: {
ERROR: "ERROR"
NOT_RESPONDER: "NOT_RESPONDER"
RESPONDER_ACTIVE_LONG_PRESS_IN: "RESPONDER_ACTIVE_LONG_PRESS_IN"
RESPONDER_ACTIVE_LONG_PRESS_OUT: "RESPONDER_ACTIVE_LONG_PRESS_OUT"
RESPONDER_ACTIVE_PRESS_IN: "RESPONDER_ACTIVE_PRESS_IN"
RESPONDER_ACTIVE_PRESS_OUT: "RESPONDER_ACTIVE_PRESS_OUT"
RESPONDER_INACTIVE_PRESS_IN: "RESPONDER_INACTIVE_PRESS_IN"
RESPONDER_INACTIVE_PRESS_OUT: "RESPONDER_INACTIVE_PRESS_OUT"
}
declare const subtract: typeof $$AnimatedImplementation.subtract
declare const subtractImpl: (
a: AnimatedNode_default | number,
b: AnimatedNode_default | number,
) => AnimatedSubtraction_default
declare const Switch: typeof Switch_default
declare const Switch_default: (
props: SwitchProps & {
ref?: React.Ref<SwitchRef>
},
) => React.ReactNode
declare const Text: typeof TextImpl_default
declare const TextImpl_default: (
props: TextProps & {
ref?: React.Ref<TextForwardRef>
},
) => React.ReactNode
declare const TextInlineImage_default: HostComponent<RCTTextInlineImageNativeProps>
declare const TextInput: TextInputType
declare const timing: typeof $$AnimatedImplementation.timing
declare const timingImpl: (
value:
| AnimatedColor_default
| AnimatedValue_default
| AnimatedValueXY_default,
config: TimingAnimationConfig,
) => CompositeAnimation
declare const ToastAndroid: typeof ToastAndroid_default
declare const ToastAndroid_default: {
BOTTOM: number
CENTER: number
LONG: number
SHORT: number
TOP: number
show: (message: string, duration: number) => void
showWithGravity: (message: string, duration: number, gravity: number) => void
showWithGravityAndOffset: (
message: string,
duration: number,
gravity: number,
xOffset: number,
yOffset: number,
) => void
}
declare const Touchable: typeof TouchableImpl_default
declare const Touchable_default: (
props: TouchableOpacityProps & {
ref?: React.Ref<React.ComponentRef<typeof Animated.View>>
},
) => React.ReactNode
declare const TouchableHighlight: typeof TouchableHighlight_default
declare const TouchableHighlight_default: (
props: Readonly<Omit<TouchableHighlightProps, "hostRef">> & {
ref?: React.Ref<React.ComponentRef<typeof View>>
},
) => React.ReactNode
declare const TouchableImpl_default: {
Mixin: typeof TouchableMixinImpl
renderDebugView: ($$PARAM_0$$: {
color: ColorValue
hitSlop?: EdgeInsetsProp
}) => null | React.ReactNode
}
declare const TouchableMixinImpl: {
withoutDefaultFocusAndBlur: {}
componentDidMount: () => void
componentWillUnmount: () => void
touchableGetInitialState: () => {
touchable: {
responderID: GestureResponderEvent["currentTarget"] | undefined
touchState: TouchableState | undefined
}
}
touchableHandleBlur: (e: BlurEvent) => void
touchableHandleFocus: (e: FocusEvent) => void
touchableHandleResponderGrant: (e: GestureResponderEvent) => void
touchableHandleResponderMove: (e: GestureResponderEvent) => void
touchableHandleResponderRelease: (e: GestureResponderEvent) => void
touchableHandleResponderTerminate: (e: GestureResponderEvent) => void
touchableHandleResponderTerminationRequest: () => any
touchableHandleStartShouldSetResponder: () => any
touchableLongPressCancelsPress: () => boolean
}
declare const TouchableOpacity: typeof Touchable_default
declare const UIManager: typeof UIManager_default
declare const UIManager_default: UIManagerJSInterface
declare const unforkEvent: typeof $$AnimatedImplementation.unforkEvent
declare const UTFSequence: typeof UTFSequence_default
declare const UTFSequence_default: {
BOM: string
BULLET: string
BULLET_SP: string
MDASH: string
MDASH_SP: string
MIDDOT: string
MIDDOT_KATAKANA: string
MIDDOT_SP: string
NBSP: string
NDASH: string
NDASH_SP: string
NEWLINE: string
PIZZA: string
TRIANGLE_LEFT: string
TRIANGLE_RIGHT: string
}
declare const Vibration: typeof Vibration_default
declare const Vibration_default: {
cancel: () => void
vibrate: (pattern?: Array<number> | number, repeat?: boolean) => void
}
declare const ViewNativeComponent_default: HostComponent<ViewProps>
declare const VirtualizedList: typeof VirtualizedListComponent_default
declare const VirtualizedListComponent_default: VirtualizedListType
declare const VirtualizedListContext: React.Context<Context | null | undefined>
declare const VirtualizedSectionList: typeof VirtualizedSectionList_default
declare const VirtualizedSectionList_default: VirtualizedSectionListType
declare const VirtualizedSectionListComponent_default: <
ItemT,
SectionT extends SectionBase<
ItemT,
DefaultVirtualizedSectionT
> = DefaultVirtualizedSectionT,
>(
props: Omit<VirtualizedSectionListProps<ItemT, SectionT>, "ref"> & {
ref: React.Ref<{
getListRef(): undefined | VirtualizedList_default
scrollToLocation(params: ScrollToLocationParamsType): void
}>
},
) => React.ReactNode
declare type ____BlendMode_Internal =
| "color-burn"
| "color-dodge"
| "color"
| "darken"
| "difference"
| "exclusion"
| "hard-light"
| "hue"
| "lighten"
| "luminosity"
| "multiply"
| "normal"
| "overlay"
| "saturation"
| "screen"
| "soft-light"
declare type ____ColorValue_Internal = NativeColorValue | null | number | string
declare type ____DangerouslyImpreciseAnimatedStyleProp_Internal =
WithAnimatedValue<StyleProp<Partial<____DangerouslyImpreciseStyle_Internal>>>
declare type ____DangerouslyImpreciseStyle_Internal = Readonly<
____DangerouslyImpreciseStyle_InternalCore &
____DangerouslyImpreciseStyle_InternalOverrides
>
declare type ____DangerouslyImpreciseStyle_InternalCore = Readonly<
____TextStyle_Internal & {
objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down"
overlayColor?: ColorValue
resizeMode?: ImageResizeMode
tintColor?: ____ColorValue_Internal
}
>
declare type ____DangerouslyImpreciseStyle_InternalOverrides = {}
declare type ____FlattenStyleProp_Helper<
TStyleProp extends StyleProp<unknown>,
Depth extends FlattenDepthLimiter[keyof FlattenDepthLimiter] = 9,
> = Depth extends 0
? never
: TStyleProp extends "" | false | null | void
? never
: TStyleProp extends ReadonlyArray<infer V>
? ____FlattenStyleProp_Helper<
V,
Depth extends number ? FlattenDepthLimiter[Depth] : 0
>
: TStyleProp
declare type ____FlattenStyleProp_Internal<
TStyleProp extends StyleProp<unknown>,
> = ____FlattenStyleProp_Helper<TStyleProp> extends never
? any
: ____FlattenStyleProp_Helper<TStyleProp>
declare type ____FontVariant_Internal =
| "common-ligatures"
| "contextual"
| "discretionary-ligatures"
| "historical-ligatures"
| "lining-nums"
| "no-common-ligatures"
| "no-contextual"
| "no-discretionary-ligatures"
| "no-historical-ligatures"
| "oldstyle-nums"
| "proportional-nums"
| "small-caps"
| "stylistic-eight"
| "stylistic-eighteen"
| "stylistic-eleven"
| "stylistic-fifteen"
| "stylistic-five"
| "stylistic-four"
| "stylistic-fourteen"
| "stylistic-nine"
| "stylistic-nineteen"
| "stylistic-one"
| "stylistic-seven"
| "stylistic-seventeen"
| "stylistic-six"
| "stylistic-sixteen"
| "stylistic-ten"
| "stylistic-thirteen"
| "stylistic-three"
| "stylistic-twelve"
| "stylistic-twenty"
| "stylistic-two"
| "tabular-nums"
declare type ____FontVariantArray_Internal =
ReadonlyArray<____FontVariant_Internal>
declare type ____FontWeight_Internal =
| "100"
| "200"
| "300"
| "400"
| "500"
| "600"
| "700"
| "800"
| "900"
| "black"
| "bold"
| "condensed"
| "condensedBold"
| "heavy"
| "light"
| "medium"
| "normal"
| "regular"
| "semibold"
| "thin"
| "ultralight"
| 100
| 200
| 300
| 400
| 500
| 600
| 700
| 800
| 900
declare type ____ImageStyle_Internal = Readonly<
____ImageStyle_InternalCore & ____ImageStyle_InternalOverrides
>
declare type ____ImageStyle_InternalCore = Readonly<
Omit<____ViewStyle_Internal, "overflow"> & {
objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down"
overflow?: "hidden" | "visible"
overlayColor?: ColorValue
resizeMode?: ImageResizeMode
tintColor?: ____ColorValue_Internal
}
>
declare type ____ImageStyle_InternalOverrides = {}
declare type ____ImageStyleProp_Internal = StyleProp<
Readonly<Partial<____ImageStyle_Internal>>
>
declare type ____LayoutStyle_Internal = {
readonly alignContent?:
| "center"
| "flex-end"
| "flex-start"
| "space-around"
| "space-between"
| "space-evenly"
| "stretch"
readonly alignItems?:
| "baseline"
| "center"
| "flex-end"
| "flex-start"
| "stretch"
readonly alignSelf?:
| "auto"
| "baseline"
| "center"
| "flex-end"
| "flex-start"
| "stretch"
readonly aspectRatio?: number | string
readonly borderBottomWidth?: number
readonly borderEndWidth?: number
readonly borderLeftWidth?: number
readonly borderRightWidth?: number
readonly borderStartWidth?: number
readonly borderTopWidth?: number
readonly borderWidth?: number
readonly bottom?: DimensionValue
readonly boxSizing?: "border-box" | "content-box"
readonly columnGap?: number | string
readonly direction?: "inherit" | "ltr" | "rtl"
readonly display?: "contents" | "flex" | "none"
readonly end?: DimensionValue
readonly flex?: number
readonly flexBasis?: number | string
readonly flexDirection?: "column-reverse" | "column" | "row-reverse" | "row"
readonly flexGrow?: number
readonly flexShrink?: number
readonly flexWrap?: "nowrap" | "wrap-reverse" | "wrap"
readonly gap?: number | string
readonly height?: DimensionValue
readonly inset?: DimensionValue
readonly insetBlock?: DimensionValue
readonly insetBlockEnd?: DimensionValue
readonly insetBlockStart?: DimensionValue
readonly insetInline?: DimensionValue
readonly insetInlineEnd?: DimensionValue
readonly insetInlineStart?: DimensionValue
readonly justifyContent?:
| "center"
| "flex-end"
| "flex-start"
| "space-around"
| "space-between"
| "space-evenly"
readonly left?: DimensionValue
readonly margin?: DimensionValue
readonly marginBlock?: DimensionValue
readonly marginBlockEnd?: DimensionValue
readonly marginBlockStart?: DimensionValue
readonly marginBottom?: DimensionValue
readonly marginEnd?: DimensionValue
readonly marginHorizontal?: DimensionValue
readonly marginInline?: DimensionValue
readonly marginInlineEnd?: DimensionValue
readonly marginInlineStart?: DimensionValue
readonly marginLeft?: DimensionValue
readonly marginRight?: DimensionValue
readonly marginStart?: DimensionValue
readonly marginTop?: DimensionValue
readonly marginVertical?: DimensionValue
readonly maxHeight?: DimensionValue
readonly maxWidth?: DimensionValue
readonly minHeight?: DimensionValue
readonly minWidth?: DimensionValue
readonly overflow?: "hidden" | "scroll" | "visible"
readonly padding?: DimensionValue
readonly paddingBlock?: DimensionValue
readonly paddingBlockEnd?: DimensionValue
readonly paddingBlockStart?: DimensionValue
readonly paddingBottom?: DimensionValue
readonly paddingEnd?: DimensionValue
readonly paddingHorizontal?: DimensionValue
readonly paddingInline?: DimensionValue
readonly paddingInlineEnd?: DimensionValue
readonly paddingInlineStart?: DimensionValue
readonly paddingLeft?: DimensionValue
readonly paddingRight?: DimensionValue
readonly paddingStart?: DimensionValue
readonly paddingTop?: DimensionValue
readonly paddingVertical?: DimensionValue
readonly position?: "absolute" | "relative" | "static"
readonly right?: DimensionValue
readonly rowGap?: number | string
readonly start?: DimensionValue
readonly top?: DimensionValue
readonly width?: DimensionValue
readonly zIndex?: number
}
declare type ____ShadowStyle_Internal = Readonly<
____ShadowStyle_InternalCore & ____ShadowStyle_InternalOverrides
>
declare type ____ShadowStyle_InternalCore = {
readonly shadowColor?: ____ColorValue_Internal
readonly shadowOffset?: {
readonly height?: number
readonly width?: number
}
readonly shadowOpacity?: number
readonly shadowRadius?: number
}
declare type ____ShadowStyle_InternalOverrides = {}
declare type ____Styles_Internal = {
readonly [key: string]: Partial<____DangerouslyImpreciseStyle_Internal>
}
declare type ____TextStyle_Internal = Readonly<
____TextStyle_InternalCore & ____TextStyle_InternalOverrides
>
declare type ____TextStyle_InternalBase = {
readonly color?: ____ColorValue_Internal
readonly fontFamily?: string
readonly fontSize?: number
readonly fontStyle?: "italic" | "normal"
readonly fontVariant?: ____FontVariantArray_Internal | string
readonly fontWeight?: ____FontWeight_Internal
readonly includeFontPadding?: boolean
readonly letterSpacing?: number
readonly lineHeight?: number
readonly textAlign?: "auto" | "center" | "justify" | "left" | "right"
readonly textAlignVertical?: "auto" | "bottom" | "center" | "top"
readonly textDecorationColor?: ____ColorValue_Internal
readonly textDecorationLine?:
| "line-through"
| "none"
| "underline line-through"
| "underline"
readonly textDecorationStyle?: "dashed" | "dotted" | "double" | "solid"
readonly textShadowColor?: ____ColorValue_Internal
readonly textShadowOffset?: {
readonly height: number
readonly width: number
}
readonly textShadowRadius?: number
readonly textTransform?: "capitalize" | "lowercase" | "none" | "uppercase"
readonly userSelect?: "all" | "auto" | "contain" | "none" | "text"
readonly verticalAlign?: "auto" | "bottom" | "middle" | "top"
readonly writingDirection?: "auto" | "ltr" | "rtl"
}
declare type ____TextStyle_InternalCore = Readonly<
____ViewStyle_Internal & ____TextStyle_InternalBase
>
declare type ____TextStyle_InternalOverrides = {}
declare type ____TextStyleProp_Internal = StyleProp<
Readonly<Partial<____TextStyle_Internal>>
>
declare type ____TransformStyle_Internal = {
readonly transform?:
| ReadonlyArray<
Readonly<
MaximumOneOf<
MergeUnion<
| {
readonly matrix:
| AnimatedNode_default
| ReadonlyArray<AnimatedNode_default | number>
}
| {
readonly perspective: AnimatedNode_default | number
}
| {
readonly rotate: AnimatedNode_default | string
}
| {
readonly rotateX: AnimatedNode_default | string
}
| {
readonly rotateY: AnimatedNode_default | string
}
| {
readonly rotateZ: AnimatedNode_default | string
}
| {
readonly scale: AnimatedNode_default | number
}
| {
readonly scaleX: AnimatedNode_default | number
}
| {
readonly scaleY: AnimatedNode_default | number
}
| {
readonly skewX: AnimatedNode_default | string
}
| {
readonly skewY: AnimatedNode_default | string
}
| {
readonly translate:
| [
AnimatedNode_default | number | string,
AnimatedNode_default | number | string,
]
| AnimatedNode_default
}
| {
readonly translateX: AnimatedNode_default | number | string
}
| {
readonly translateY: AnimatedNode_default | number | string
}
>
>
>
>
| string
readonly transformOrigin?:
| [number | string, number | string, number | string]
| string
}
declare type ____ViewStyle_Internal = Readonly<
____ViewStyle_InternalCore & ____ViewStyle_InternalOverrides
>
declare type ____ViewStyle_InternalBase = {
readonly backfaceVisibility?: "hidden" | "visible"
readonly backgroundColor?: ____ColorValue_Internal
readonly borderBlockColor?: ____ColorValue_Internal
readonly borderBlockEndColor?: ____ColorValue_Internal
readonly borderBlockStartColor?: ____ColorValue_Internal
readonly borderBottomColor?: ____ColorValue_Internal
readonly borderBottomEndRadius?: number | string
readonly borderBottomLeftRadius?: number | string
readonly borderBottomRightRadius?: number | string
readonly borderBottomStartRadius?: number | string
readonly borderBottomWidth?: number
readonly borderColor?: ____ColorValue_Internal
readonly borderCurve?: "circular" | "continuous"
readonly borderEndColor?: ____ColorValue_Internal
readonly borderEndEndRadius?: number | string
readonly borderEndStartRadius?: number | string
readonly borderEndWidth?: number
readonly borderLeftColor?: ____ColorValue_Internal
readonly borderLeftWidth?: number
readonly borderRadius?: number | string
readonly borderRightColor?: ____ColorValue_Internal
readonly borderRightWidth?: number
readonly borderStartColor?: ____ColorValue_Internal
readonly borderStartEndRadius?: number | string
readonly borderStartStartRadius?: number | string
readonly borderStartWidth?: number
readonly borderStyle?: "dashed" | "dotted" | "solid"
readonly borderTopColor?: ____ColorValue_Internal
readonly borderTopEndRadius?: number | string
readonly borderTopLeftRadius?: number | string
readonly borderTopRightRadius?: number | string
readonly borderTopStartRadius?: number | string
readonly borderTopWidth?: number
readonly borderWidth?: number
readonly boxShadow?: ReadonlyArray<BoxShadowValue> | string
readonly cursor?: CursorValue
readonly elevation?: number
readonly filter?: ReadonlyArray<FilterFunction> | string
readonly isolation?: "auto" | "isolate"
readonly mixBlendMode?: ____BlendMode_Internal
readonly opacity?: number
readonly outlineColor?: ____ColorValue_Internal
readonly outlineOffset?: number
readonly outlineStyle?: "dashed" | "dotted" | "solid"
readonly outlineWidth?: number
readonly pointerEvents?: "auto" | "box-none" | "box-only" | "none"
}
declare type ____ViewStyle_InternalCore = Readonly<
____LayoutStyle_Internal &
____ShadowStyle_Internal &
____TransformStyle_Internal &
____ViewStyle_InternalBase
>
declare type ____ViewStyle_InternalOverrides = {}
declare type ____ViewStyleProp_Internal = StyleProp<
Readonly<Partial<____ViewStyle_Internal>>
>
declare type $$AndroidSwitchNativeComponent =
typeof $$AndroidSwitchNativeComponent