-
Notifications
You must be signed in to change notification settings - Fork 11
/
Fable.Import.ReactNative.fs
2443 lines (2018 loc) · 118 KB
/
Fable.Import.ReactNative.fs
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
namespace Fable.Import
open System
open System.Text.RegularExpressions
open Fable.Core
open Fable.Import.JS
open Fable.Import.Browser
[<Erase>]
module ReactNative =
module JSX =
type Element = obj // added after import
module NativeMethodsMixin =
type MeasureOnSuccessCallback =
(float -> float -> float -> float -> float -> float -> unit)
and MeasureInWindowOnSuccessCallback =
(float -> float -> float -> float -> unit)
and MeasureLayoutOnSuccessCallback =
(float -> float -> float -> float -> unit)
module Animated =
type AnimatedValue =
Animated
and AnimatedValueXY =
ValueXY
and Base =
Animated
and [<Import("Animated.Animated","react-native")>] Animated() =
class end
and [<Import("Animated.AnimatedWithChildren","react-native")>] AnimatedWithChildren() =
inherit Animated()
and [<Import("Animated.AnimatedInterpolation","react-native")>] AnimatedInterpolation() =
inherit AnimatedWithChildren()
member __.interpolate(config: InterpolationConfigType): AnimatedInterpolation = jsNative
and [<StringEnum>] ExtrapolateType =
| Extend | Identity | Clamp
and InterpolationConfigType =
obj
and ValueListenerCallback =
(obj -> unit)
and [<Import("Animated.Value","react-native")>] Value(value: float) =
inherit AnimatedWithChildren()
member __.setValue(value: float): unit = jsNative
member __.setOffset(offset: float): unit = jsNative
member __.flattenOffset(): unit = jsNative
member __.addListener(callback: ValueListenerCallback): string = jsNative
member __.removeListener(id: string): unit = jsNative
member __.removeAllListeners(): unit = jsNative
member __.stopAnimation(?callback: (float -> unit)): unit = jsNative
member __.interpolate(config: InterpolationConfigType): AnimatedInterpolation = jsNative
and ValueXYListenerCallback =
(obj -> unit)
and [<Import("Animated.ValueXY","react-native")>] ValueXY(?valueIn: obj) =
inherit AnimatedWithChildren()
member __.x with get(): AnimatedValue = jsNative and set(v: AnimatedValue): unit = jsNative
member __.y with get(): AnimatedValue = jsNative and set(v: AnimatedValue): unit = jsNative
member __.setValue(value: obj): unit = jsNative
member __.setOffset(offset: obj): unit = jsNative
member __.flattenOffset(): unit = jsNative
member __.stopAnimation(?callback: (float -> unit)): unit = jsNative
member __.addListener(callback: ValueXYListenerCallback): string = jsNative
member __.removeListener(id: string): unit = jsNative
member __.getLayout(): obj = jsNative
member __.getTranslateTransform(): ResizeArray<obj> = jsNative
and EndResult =
obj
and EndCallback =
(EndResult -> unit)
and CompositeAnimation =
abstract start: (EndCallback -> unit) with get, set
abstract stop: (unit -> unit) with get, set
and AnimationConfig =
abstract isInteraction: bool option with get, set
abstract useNativeDriver: bool option with get, set
and DecayAnimationConfig =
inherit AnimationConfig
abstract velocity: U2<float, obj> with get, set
abstract deceleration: float option with get, set
and TimingAnimationConfig =
inherit AnimationConfig
abstract toValue: U4<float, AnimatedValue, obj, AnimatedValueXY> with get, set
abstract easing: (float -> float) option with get, set
abstract duration: float option with get, set
abstract delay: float option with get, set
and SpringAnimationConfig =
inherit AnimationConfig
abstract toValue: U4<float, AnimatedValue, obj, AnimatedValueXY> with get, set
abstract overshootClamping: bool option with get, set
abstract restDisplacementThreshold: float option with get, set
abstract restSpeedThreshold: float option with get, set
abstract velocity: U2<float, obj> option with get, set
abstract bounciness: float option with get, set
abstract speed: float option with get, set
abstract tension: float option with get, set
abstract friction: float option with get, set
and [<Import("Animated.AnimatedAddition","react-native")>] AnimatedAddition() =
inherit AnimatedInterpolation()
and [<Import("Animated.AnimatedMultiplication","react-native")>] AnimatedMultiplication() =
inherit AnimatedInterpolation()
and [<Import("Animated.AnimatedModulo","react-native")>] AnimatedModulo() =
inherit AnimatedInterpolation()
and ParallelConfig =
obj
and Mapping =
U2<obj, AnimatedValue>
and EventConfig =
abstract listener: Function option with get, set
type [<Import("Animated","react-native")>] Globals =
static member timing with get(): (U2<AnimatedValue, AnimatedValueXY> -> TimingAnimationConfig -> CompositeAnimation) = jsNative and set(v: (U2<AnimatedValue, AnimatedValueXY> -> TimingAnimationConfig -> CompositeAnimation)): unit = jsNative
static member spring with get(): (U2<AnimatedValue, AnimatedValueXY> -> SpringAnimationConfig -> CompositeAnimation) = jsNative and set(v: (U2<AnimatedValue, AnimatedValueXY> -> SpringAnimationConfig -> CompositeAnimation)): unit = jsNative
static member ``parallel`` with get(): (ResizeArray<CompositeAnimation> -> ParallelConfig -> CompositeAnimation) = jsNative and set(v: (ResizeArray<CompositeAnimation> -> ParallelConfig -> CompositeAnimation)): unit = jsNative
static member ``event`` with get(): (ResizeArray<Mapping> -> EventConfig -> (obj -> unit)) = jsNative and set(v: (ResizeArray<Mapping> -> EventConfig -> (obj -> unit))): unit = jsNative
static member View with get(): obj = jsNative and set(v: obj): unit = jsNative
static member Image with get(): obj = jsNative and set(v: obj): unit = jsNative
static member Text with get(): obj = jsNative and set(v: obj): unit = jsNative
static member decay(value: U2<AnimatedValue, AnimatedValueXY>, config: DecayAnimationConfig): CompositeAnimation = jsNative
static member add(a: Animated, b: Animated): AnimatedAddition = jsNative
static member multiply(a: Animated, b: Animated): AnimatedMultiplication = jsNative
static member modulo(a: Animated, modulus: float): AnimatedModulo = jsNative
static member delay(time: float): CompositeAnimation = jsNative
static member sequence(animations: ResizeArray<CompositeAnimation>): CompositeAnimation = jsNative
static member stagger(time: float, animations: ResizeArray<CompositeAnimation>): CompositeAnimation = jsNative
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module NavigatorStatic =
type Route = obj // added after import
type ViewStyle = obj // added after import
type NavState =
abstract routeStack: ResizeArray<Route> with get, set
abstract idStack: ResizeArray<float> with get, set
abstract presentedIndex: float with get, set
and NavigationBarStyle =
interface end
and NavigationBarRouteMapper =
abstract Title: (Route -> Navigator -> float -> NavState -> React.ReactElement) with get, set
abstract LeftButton: (Route -> Navigator -> float -> NavState -> React.ReactElement) with get, set
abstract RightButton: (Route -> Navigator -> float -> NavState -> React.ReactElement) with get, set
and NavigationBarProperties =
inherit React.Props<NavigationBarStatic>
abstract navigator: Navigator option with get, set
abstract routeMapper: NavigationBarRouteMapper option with get, set
abstract navState: NavState option with get, set
abstract style: ViewStyle option with get, set
and NavigationBarStatic =
inherit React.ComponentClass<NavigationBarProperties>
abstract Styles: NavigationBarStyle with get, set
and NavigationBar =
NavigationBarStatic
and BreadcrumbNavigationBarStyle =
interface end
and BreadcrumbNavigationBarRouteMapper =
abstract rightContentForRoute: (Route -> Navigator -> React.ReactElement) with get, set
abstract titleContentForRoute: (Route -> Navigator -> React.ReactElement) with get, set
abstract iconForRoute: (Route -> Navigator -> React.ReactElement) with get, set
abstract separatorForRoute: (Route -> Navigator -> React.ReactElement) with get, set
and BreadcrumbNavigationBarProperties =
inherit React.Props<BreadcrumbNavigationBarStatic>
abstract navigator: Navigator option with get, set
abstract routeMapper: BreadcrumbNavigationBarRouteMapper option with get, set
abstract navState: NavState option with get, set
abstract style: ViewStyle option with get, set
and BreadcrumbNavigationBarStatic =
inherit React.ComponentClass<BreadcrumbNavigationBarProperties>
abstract Styles: BreadcrumbNavigationBarStyle with get, set
and BreadcrumbNavigationBar =
BreadcrumbNavigationBarStatic
type [<Import("NavigatorStatic","react-native")>] Globals =
static member NavigationBar with get(): NavigationBarStatic = jsNative and set(v: NavigationBarStatic): unit = jsNative
static member BreadcrumbNavigationBar with get(): BreadcrumbNavigationBarStatic = jsNative and set(v: BreadcrumbNavigationBarStatic): unit = jsNative
type NativeComponent =
abstract refs: obj with get, set
abstract ``measure``: callback: NativeMethodsMixin.MeasureOnSuccessCallback -> unit
abstract measureInWindow: callback: NativeMethodsMixin.MeasureInWindowOnSuccessCallback -> unit
abstract measureLayout: relativeToNativeNode: float * onSuccess: NativeMethodsMixin.MeasureLayoutOnSuccessCallback * onFail: (unit -> unit)
abstract setNativeProps: nativeProps: obj -> unit
abstract focus: unit -> unit
abstract blur: unit -> unit
and ReactClass<'D, 'P, 'S> =
interface end
and Runnable =
(obj -> unit)
and NativeSyntheticEvent<'T> =
abstract bubbles: bool with get, set
abstract cancelable: bool with get, set
abstract currentTarget: EventTarget with get, set
abstract defaultPrevented: bool with get, set
abstract eventPhase: float with get, set
abstract isTrusted: bool with get, set
abstract nativeEvent: 'T with get, set
abstract target: EventTarget with get, set
abstract timeStamp: DateTime with get, set
abstract ``type``: string with get, set
abstract preventDefault: unit -> unit
abstract stopPropagation: unit -> unit
and NativeTouchEvent =
abstract changedTouches: ResizeArray<NativeTouchEvent> with get, set
abstract identifier: string with get, set
abstract locationX: float with get, set
abstract locationY: float with get, set
abstract pageX: float with get, set
abstract pageY: float with get, set
abstract target: string with get, set
abstract timestamp: float with get, set
abstract touches: ResizeArray<NativeTouchEvent> with get, set
and GestureResponderEvent =
inherit NativeSyntheticEvent<NativeTouchEvent>
and PointProperties =
abstract x: float with get, set
abstract y: float with get, set
and Insets =
abstract top: float option with get, set
abstract left: float option with get, set
abstract bottom: float option with get, set
abstract right: float option with get, set
and Touchable =
abstract onTouchStart: (GestureResponderEvent -> unit) option with get, set
abstract onTouchMove: (GestureResponderEvent -> unit) option with get, set
abstract onTouchEnd: (GestureResponderEvent -> unit) option with get, set
abstract onTouchCancel: (GestureResponderEvent -> unit) option with get, set
abstract onTouchEndCapture: (GestureResponderEvent -> unit) option with get, set
and AppConfig =
obj
and [<Import("AppRegistry","react-native")>] AppRegistry() =
static member registerConfig(config: ResizeArray<AppConfig>): unit = jsNative
static member registerComponent(appKey: string, getComponentFunc: (unit -> React.ComponentClass<obj>)): string = jsNative
static member registerRunnable(appKey: string, func: Runnable): string = jsNative
static member getAppKeys(): ResizeArray<string> = jsNative
static member unmountApplicationComponentAtRootTag(rootTag: float): unit = jsNative
static member runApplication(appKey: string, appParameters: obj): unit = jsNative
and LayoutAnimationTypes =
abstract spring: string with get, set
abstract linear: string with get, set
abstract easeInEaseOut: string with get, set
abstract easeIn: string with get, set
abstract easeOut: string with get, set
and LayoutAnimationProperties =
abstract opacity: string with get, set
abstract scaleXY: string with get, set
and LayoutAnimationAnim =
abstract duration: float option with get, set
abstract delay: float option with get, set
abstract springDamping: float option with get, set
abstract initialVelocity: float option with get, set
abstract ``type``: string option with get, set
abstract property: string option with get, set
and LayoutAnimationConfig =
abstract duration: float with get, set
abstract create: LayoutAnimationAnim option with get, set
abstract update: LayoutAnimationAnim option with get, set
abstract delete: LayoutAnimationAnim option with get, set
and LayoutAnimationStatic =
abstract configureNext: (LayoutAnimationConfig -> (unit -> unit) -> (obj -> unit) -> unit) with get, set
abstract create: (float -> string -> string -> LayoutAnimationConfig) with get, set
abstract Types: LayoutAnimationTypes with get, set
abstract Properties: LayoutAnimationProperties with get, set
abstract configChecker: (obj -> string -> string -> unit) with get, set
abstract Presets: obj with get, set
and [<StringEnum>] FlexAlignType =
| [<CompiledName("flex-start")>] FlexStart
| [<CompiledName("flex-end")>] FlexEnd
| Center
| Stretch
| Baseline
and [<StringEnum>] FlexAlignSelfType =
| Auto
| [<CompiledName("flex-start")>] FlexStart
| [<CompiledName("flex-end")>] FlexEnd
| Center
| Stretch
| Baseline
and [<StringEnum>] FlexJustifyType =
| [<CompiledName("flex-start")>] FlexStart
| [<CompiledName("flex-end")>] FlexEnd
| Center
| [<CompiledName("space-between")>] SpaceBetween
| [<CompiledName("space-around")>] SpaceAround
| [<CompiledName("space-evenly")>] SpaceEvenly
and [<StringEnum>] FlexAlignContentType =
| [<CompiledName("flex-start")>] FlexStart
| [<CompiledName("flex-end")>] FlexEnd
| Center
| Stretch
| [<CompiledName("space-between")>] SpaceBetween
| [<CompiledName("space-around")>] SpaceAround
and [<StringEnum>] FlexDisplayType =
| None | Flex
and [<StringEnum>] FlexDirectionType =
| Row
| [<CompiledName("row-reverse")>] RowReverse
| Column
| [<CompiledName("column-reverse")>] ColumnReverse
and [<StringEnum>] FlexWrapType =
| Wrap | Nowrap
and [<StringEnum>] FlexOverflowType =
| Visible | Hidden | Scroll
and [<StringEnum>] FlexPositionType =
| Absolute | Relative
and FlexStyle =
abstract alignContent: FlexAlignContentType option with get, set
abstract alignItems: FlexAlignType option with get, set
abstract alignSelf: FlexAlignSelfType option with get, set
abstract aspectRatio: float option with get, set
abstract borderBottomWidth: float option with get, set
abstract borderEndWidth: float option with get, set
abstract borderLeftWidth: float option with get, set
abstract borderRightWidth: float option with get, set
abstract borderStartWidth: float option with get, set
abstract borderTopWidth: float option with get, set
abstract borderWidth: float option with get, set
abstract bottom: U2<string, float> option with get, set
abstract display: FlexDisplayType option with get, set
abstract ``end``: U2<string, float> option with get, set
abstract flex: float option with get, set
abstract flexBasis: U2<string, float> option with get, set
abstract flexDirection: FlexDirectionType option with get, set
abstract flexGrow: float option with get, set
abstract flexShrink: float option with get, set
abstract flexWrap: FlexWrapType option with get, set
abstract height: U2<string, float> option with get, set
abstract justifyContent: FlexJustifyType option with get, set
abstract left: U2<string, float> option with get, set
abstract margin: U2<string, float> option with get, set
abstract marginBottom: U2<string, float> option with get, set
abstract marginEnd: U2<string, float> option with get, set
abstract marginHorizontal: U2<string, float> option with get, set
abstract marginLeft: U2<string, float> option with get, set
abstract marginRight: U2<string, float> option with get, set
abstract marginStart: U2<string, float> option with get, set
abstract marginTop: U2<string, float> option with get, set
abstract marginVertical: U2<string, float> option with get, set
abstract maxHeight: U2<string, float> option with get, set
abstract maxWidth: U2<string, float> option with get, set
abstract minHeight: U2<string, float> option with get, set
abstract minWidth: U2<string, float> option with get, set
abstract overflow: FlexOverflowType option with get, set
abstract padding: U2<string, float> option with get, set
abstract paddingBottom: U2<string, float> option with get, set
abstract paddingEnd: U2<string, float> option with get, set
abstract paddingHorizontal: U2<string, float> option with get, set
abstract paddingLeft: U2<string, float> option with get, set
abstract paddingRight: U2<string, float> option with get, set
abstract paddingStart: U2<string, float> option with get, set
abstract paddingTop: U2<string, float> option with get, set
abstract paddingVertical: U2<string, float> option with get, set
abstract position: FlexPositionType option with get, set
abstract right: U2<string, float> option with get, set
abstract start: U2<string, float> option with get, set
abstract top: U2<string, float> option with get, set
abstract width: U2<string, float> option with get, set
abstract zIndex: float option with get, set
and ShadowPropTypesIOSStatic =
abstract shadowColor: string with get, set
abstract shadowOffset: obj with get, set
abstract shadowOpacity: float with get, set
abstract shadowRadius: float with get, set
and GetCurrentPositionOptions =
obj
and WatchPositionOptions =
obj
and GeolocationReturnType =
obj
and TransformsStyle =
abstract transform: obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj option with get, set
abstract transformMatrix: ResizeArray<float> option with get, set
abstract rotation: float option with get, set
abstract scaleX: float option with get, set
abstract scaleY: float option with get, set
abstract translateX: float option with get, set
abstract translateY: float option with get, set
and StyleSheetProperties =
abstract hairlineWidth: float with get, set
abstract flatten: style: 'T -> 'T
and LayoutRectangle =
abstract x: float with get, set
abstract y: float with get, set
abstract width: float with get, set
abstract height: float with get, set
and LayoutChangeEvent =
abstract nativeEvent: obj with get, set
and TextStyleIOS =
inherit ViewStyle
abstract letterSpacing: float option with get, set
abstract textDecorationColor: string option with get, set
abstract textDecorationStyle: (* TODO StringEnum solid | double | dotted | dashed *) string option with get, set
abstract writingDirection: (* TODO StringEnum auto | ltr | rtl *) string option with get, set
and TextStyleAndroid =
inherit ViewStyle
abstract textAlignVertical: (* TODO StringEnum auto | top | bottom | center *) string option with get, set
and TextStyle =
inherit TextStyleIOS
inherit TextStyleAndroid
inherit ViewStyle
abstract color: string option with get, set
abstract fontFamily: string option with get, set
abstract fontSize: float option with get, set
abstract fontStyle: (* TODO StringEnum normal | italic *) string option with get, set
abstract fontWeight: (* TODO StringEnum normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 *) string option with get, set
abstract letterSpacing: float option with get, set
abstract lineHeight: float option with get, set
abstract textAlign: (* TODO StringEnum auto | left | right | center *) string option with get, set
abstract textDecorationLine: (* TODO StringEnum none | underline | line-through | underline line-through *) string option with get, set
abstract textDecorationStyle: (* TODO StringEnum solid | double | dotted | dashed *) string option with get, set
abstract textDecorationColor: string option with get, set
abstract textShadowColor: string option with get, set
abstract textShadowOffset: obj option with get, set
abstract textShadowRadius: float option with get, set
abstract testID: string option with get, set
and TextPropertiesIOS =
abstract allowFontScaling: bool with get, set
abstract suppressHighlighting: bool option with get, set
and TextProperties =
inherit React.Props<TextProperties>
abstract allowFontScaling: bool option with get, set
abstract lineBreakMode: (* TODO StringEnum head | middle | tail | clip *) string option with get, set
abstract numberOfLines: float option with get, set
abstract onLayout: (LayoutChangeEvent -> unit) option with get, set
abstract onPress: (unit -> unit) option with get, set
abstract style: TextStyle option with get, set
abstract testID: string option with get, set
and TextStatic =
inherit React.ComponentClass<TextProperties>
and TextInputIOSProperties =
abstract clearButtonMode: string option with get, set
abstract clearTextOnFocus: bool option with get, set
abstract enablesReturnKeyAutomatically: bool option with get, set
abstract onKeyPress: (obj -> unit) option with get, set
abstract selectionState: obj option with get, set
and TextInputAndroidProperties =
abstract numberOfLines: float option with get, set
abstract returnKeyLabel: string option with get, set
abstract textAlign: string option with get, set
abstract textAlignVertical: string option with get, set
abstract underlineColorAndroid: string option with get, set
and TextInputProperties =
inherit TextInputIOSProperties
inherit TextInputAndroidProperties
inherit React.Props<TextInputStatic>
abstract autoCapitalize: (* TODO StringEnum none | sentences | words | characters *) string option with get, set
abstract autoCorrect: bool option with get, set
abstract autoFocus: bool option with get, set
abstract blurOnSubmit: bool option with get, set
abstract defaultValue: string option with get, set
abstract editable: bool option with get, set
abstract keyboardType: (* TODO StringEnum default | email-address | numeric | phone-pad | ascii-capable | numbers-and-punctuation | url | number-pad | name-phone-pad | decimal-pad | twitter | web-search *) string option with get, set
abstract maxLength: float option with get, set
abstract multiline: bool option with get, set
abstract onBlur: (obj -> unit) option with get, set
abstract onChange: (obj -> unit) option with get, set
abstract onChangeText: (string -> unit) option with get, set
abstract onEndEditing: (obj -> unit) option with get, set
abstract onFocus: (obj -> unit) option with get, set
abstract onLayout: (obj -> unit) option with get, set
abstract onSelectionChange: (obj -> unit) option with get, set
abstract onSubmitEditing: (obj -> unit) option with get, set
abstract password: bool option with get, set
abstract placeholder: string option with get, set
abstract placeholderTextColor: string option with get, set
abstract returnKeyType: (* TODO StringEnum default | go | google | join | next | route | search | send | yahoo | done | emergency-call *) string option with get, set
abstract secureTextEntry: bool option with get, set
abstract selectTextOnFocus: bool option with get, set
abstract selectionColor: string option with get, set
abstract style: TextStyle option with get, set
abstract testID: string option with get, set
abstract value: string option with get, set
and TextInputStatic =
inherit NativeComponent
inherit React.ComponentClass<TextInputProperties>
abstract isFocused: (unit -> bool) with get, set
abstract clear: (unit -> unit) with get, set
abstract blur: (unit -> unit) with get, set
abstract focus: (unit -> unit) with get, set
and ToolbarAndroidAction =
obj
and ToolbarAndroidProperties =
inherit ViewProperties
inherit React.Props<ToolbarAndroidStatic>
abstract actions: ResizeArray<ToolbarAndroidAction> option with get, set
abstract contentInsetEnd: float option with get, set
abstract contentInsetStart: float option with get, set
abstract logo: obj option with get, set
abstract navIcon: obj option with get, set
abstract onActionSelected: (float -> unit) option with get, set
abstract onIconClicked: (unit -> unit) option with get, set
abstract overflowIcon: obj option with get, set
abstract rtl: bool option with get, set
abstract subtitle: string option with get, set
abstract subtitleColor: string option with get, set
abstract testID: string option with get, set
abstract title: string option with get, set
abstract titleColor: string option with get, set
abstract ref: Ref<ToolbarAndroidStatic> option with get, set
and ToolbarAndroidStatic =
inherit React.ComponentClass<ToolbarAndroidProperties>
and GestureResponderHandlers =
abstract onStartShouldSetResponder: (GestureResponderEvent -> bool) option with get, set
abstract onMoveShouldSetResponder: (GestureResponderEvent -> bool) option with get, set
abstract onResponderGrant: (GestureResponderEvent -> unit) option with get, set
abstract onResponderReject: (GestureResponderEvent -> unit) option with get, set
abstract onResponderMove: (GestureResponderEvent -> unit) option with get, set
abstract onResponderRelease: (GestureResponderEvent -> unit) option with get, set
abstract onResponderTerminationRequest: (GestureResponderEvent -> bool) option with get, set
abstract onResponderTerminate: (GestureResponderEvent -> unit) option with get, set
abstract onStartShouldSetResponderCapture: (GestureResponderEvent -> bool) option with get, set
abstract onMoveShouldSetResponderCapture: (GestureResponderEvent -> unit) option with get, set
and [<StringEnum>] ViewBackfaceVisibilityType =
| Visible | Hidden
and [<StringEnum>] ViewBorderStyleType =
| Solid | Dotted | Dashed
and ViewStyle =
inherit FlexStyle
inherit TransformsStyle
abstract backfaceVisibility: ViewBackfaceVisibilityType option with get, set
abstract backgroundColor: string option with get, set
abstract borderBottomColor: string option with get, set
abstract borderBottomEndRadius: float option with get, set
abstract borderBottomLeftRadius: float option with get, set
abstract borderBottomRightRadius: float option with get, set
abstract borderBottomStartRadius: float option with get, set
abstract borderBottomWidth: float option with get, set
abstract borderColor: string option with get, set
abstract borderEndColor: string option with get, set
abstract borderLeftColor: string option with get, set
abstract borderRadius: float option with get, set
abstract borderRightColor: string option with get, set
abstract borderRightWidth: float option with get, set
abstract borderStartColor: string option with get, set
abstract borderStyle: ViewBorderStyleType option with get, set
abstract borderTopColor: string option with get, set
abstract borderTopEndRadius: float option with get, set
abstract borderTopLeftRadius: float option with get, set
abstract borderTopRightRadius: float option with get, set
abstract borderTopStartRadius: float option with get, set
abstract borderTopWidth: float option with get, set
abstract borderWidth: float option with get, set
abstract opacity: float option with get, set
abstract shadowColor: string option with get, set
abstract shadowOffset: obj option with get, set
abstract shadowOpacity: float option with get, set
abstract shadowRadius: float option with get, set
abstract elevation: float option with get, set
abstract testID: string option with get, set
and ViewPropertiesIOS =
abstract accessibilityTraits: U2<string, ResizeArray<string>> option with get, set
abstract shouldRasterizeIOS: bool option with get, set
and ViewPropertiesAndroid =
abstract accessibilityComponentType: string option with get, set
abstract accessibilityLiveRegion: string option with get, set
abstract collapsable: bool option with get, set
abstract importantForAccessibility: string option with get, set
abstract needsOffscreenAlphaCompositing: bool option with get, set
abstract renderToHardwareTextureAndroid: bool option with get, set
and [<StringEnum; RequireQualifiedAccess>] PointerEvents =
| [<CompiledName("box-none")>] BoxNone
| None
| [<CompiledName("box-only")>] BoxOnly
| Auto
and ViewProperties =
inherit ViewPropertiesAndroid
inherit ViewPropertiesIOS
inherit GestureResponderHandlers
inherit Touchable
// inherit React.Props<ViewStatic>
abstract accessibilityLabel: string option with get, set
abstract accessible: bool option with get, set
abstract hitSlop: obj option with get, set
abstract onAcccessibilityTap: (unit -> unit) option with get, set
abstract onLayout: (LayoutChangeEvent -> unit) option with get, set
abstract onMagicTap: (unit -> unit) option with get, set
abstract pointerEvents: PointerEvents option with get, set
abstract removeClippedSubviews: bool option with get, set
abstract style: ViewStyle option with get, set
abstract testID: string option with get, set
and ViewStatic =
inherit NativeComponent
inherit React.ComponentClass<ViewProperties>
and ViewPagerAndroidOnPageScrollEventData =
abstract position: float with get, set
abstract offset: float with get, set
and ViewPagerAndroidOnPageSelectedEventData =
abstract position: float with get, set
and ViewPagerAndroidProperties =
inherit ViewProperties
abstract initialPage: float option with get, set
abstract scrollEnabled: bool option with get, set
abstract onPageScroll: (NativeSyntheticEvent<ViewPagerAndroidOnPageScrollEventData> -> unit) option with get, set
abstract onPageSelected: (NativeSyntheticEvent<ViewPagerAndroidOnPageSelectedEventData> -> unit) option with get, set
abstract onPageScrollStateChanged: ((* TODO StringEnum Idle | Dragging | Settling *) string -> unit) option with get, set
abstract keyboardDismissMode: (* TODO StringEnum none | on-drag *) string option with get, set
abstract pageMargin: float option with get, set
and ViewPagerAndroidStatic =
inherit NativeComponent
inherit React.ComponentClass<ViewPagerAndroidProperties>
abstract setPage: (float -> unit) with get, set
abstract setPageWithoutAnimation: (float -> unit) with get, set
and KeyboardAvoidingViewStatic =
inherit React.ComponentClass<KeyboardAvoidingViewProps>
and KeyboardAvoidingViewProps =
inherit ViewProperties
inherit React.Props<KeyboardAvoidingViewStatic>
abstract behavior: (* TODO StringEnum height | position | padding *) string option with get, set
abstract keyboardVerticalOffset: float with get, set
abstract ref: Ref<obj> option with get, set
and NavState =
abstract url: string option with get, set
abstract title: string option with get, set
abstract loading: bool option with get, set
abstract canGoBack: bool option with get, set
abstract canGoForward: bool option with get, set
[<Emit("$0[$1]{{=$2}}")>] abstract Item: key: string -> obj with get, set
and WebViewPropertiesAndroid =
abstract javaScriptEnabled: bool option with get, set
abstract domStorageEnabled: bool option with get, set
and WebViewIOSLoadRequestEvent =
abstract target: float with get, set
abstract canGoBack: bool with get, set
abstract lockIdentifier: float with get, set
abstract loading: bool with get, set
abstract title: string with get, set
abstract canGoForward: bool with get, set
abstract navigationType: (* TODO StringEnum other | click *) string with get, set
abstract url: string with get, set
and WebViewPropertiesIOS =
abstract allowsInlineMediaPlayback: bool option with get, set
abstract bounces: bool option with get, set
abstract decelerationRate: (* TODO StringEnum normal | fast | *) string option with get, set
abstract onShouldStartLoadWithRequest: (WebViewIOSLoadRequestEvent -> bool) option with get, set
abstract scrollEnabled: bool option with get, set
and WebViewUriSource =
abstract uri: string option with get, set
abstract ``method``: string option with get, set
abstract headers: obj option with get, set
abstract body: string option with get, set
and WebViewHtmlSource =
abstract html: string with get, set
abstract baseUrl: string option with get, set
and WebViewProperties =
inherit ViewProperties
inherit WebViewPropertiesAndroid
inherit WebViewPropertiesIOS
inherit React.Props<WebViewStatic>
abstract automaticallyAdjustContentInsets: bool option with get, set
abstract bounces: bool option with get, set
abstract contentInset: Insets option with get, set
abstract html: string option with get, set
abstract injectedJavaScript: string option with get, set
abstract onError: (NavState -> unit) option with get, set
abstract onLoad: (NavState -> unit) option with get, set
abstract onLoadEnd: (NavState -> unit) option with get, set
abstract onLoadStart: (NavState -> unit) option with get, set
abstract onNavigationStateChange: (NavState -> unit) option with get, set
abstract onShouldStartLoadWithRequest: (obj -> bool) option with get, set
abstract renderError: (unit ->React.ReactElement) option with get, set
abstract renderLoading: (unit ->React.ReactElement) option with get, set
abstract scrollEnabled: bool option with get, set
abstract startInLoadingState: bool option with get, set
abstract style: ViewStyle option with get, set
abstract url: string option with get, set
abstract source: U3<WebViewUriSource, WebViewHtmlSource, float> option with get, set
abstract mediaPlaybackRequiresUserAction: bool option with get, set
abstract scalesPageToFit: bool option with get, set
abstract ref: Ref<obj> option with get, set
and WebViewStatic =
inherit React.ComponentClass<WebViewProperties>
abstract goBack: (unit -> unit) with get, set
abstract goForward: (unit -> unit) with get, set
abstract reload: (unit -> unit) with get, set
abstract getWebViewHandle: (unit -> obj) with get, set
and NativeSegmentedControlIOSChangeEvent =
abstract value: string with get, set
abstract selectedSegmentIndex: float with get, set
abstract target: float with get, set
and SegmentedControlIOSProperties =
inherit ViewProperties
inherit React.Props<SegmentedControlIOSStatic>
abstract enabled: bool option with get, set
abstract momentary: bool option with get, set
abstract onChange: (NativeSyntheticEvent<NativeSegmentedControlIOSChangeEvent> -> unit) option with get, set
abstract onValueChange: (string -> unit) option with get, set
abstract selectedIndex: float option with get, set
abstract tintColor: string option with get, set
abstract values: ResizeArray<string> option with get, set
abstract ref: Ref<SegmentedControlIOSStatic> option with get, set
and SegmentedControlIOSStatic =
inherit React.ComponentClass<SegmentedControlIOSProperties>
and NavigatorIOSProperties =
inherit React.Props<NavigatorIOSStatic>
abstract barTintColor: string option with get, set
abstract initialRoute: Route option with get, set
abstract itemWrapperStyle: ViewStyle option with get, set
abstract navigationBarHidden: bool option with get, set
abstract shadowHidden: bool option with get, set
abstract tintColor: string option with get, set
abstract titleTextColor: string option with get, set
abstract translucent: bool option with get, set
abstract style: ViewStyle option with get, set
and NavigationIOS =
abstract push: (Route -> unit) with get, set
abstract pop: (unit -> unit) with get, set
abstract popN: (float -> unit) with get, set
abstract replace: (Route -> unit) with get, set
abstract replacePrevious: (Route -> unit) with get, set
abstract replacePreviousAndPop: (Route -> unit) with get, set
abstract resetTo: (Route -> unit) with get, set
abstract popToRoute: route: Route -> unit
abstract popToTop: unit -> unit
and NavigatorIOSStatic =
inherit NavigationIOS
inherit React.ComponentClass<NavigatorIOSProperties>
and ActivityIndicatorProperties =
inherit ViewProperties
inherit React.Props<ActivityIndicatorStatic>
abstract animating: bool option with get, set
abstract color: string option with get, set
abstract hidesWhenStopped: bool option with get, set
abstract size: (* TODO StringEnum small | large *) string option with get, set
abstract style: ViewStyle option with get, set
abstract ref: Ref<ActivityIndicatorStatic> option with get, set
and ActivityIndicatorStatic =
inherit React.ComponentClass<ActivityIndicatorProperties>
and ActivityIndicatorIOSProperties =
inherit ViewProperties
inherit React.Props<ActivityIndicatorIOSStatic>
abstract animating: bool option with get, set
abstract color: string option with get, set
abstract hidesWhenStopped: bool option with get, set
abstract onLayout: (obj -> unit) option with get, set
abstract size: (* TODO StringEnum small | large *) string option with get, set
abstract style: ViewStyle option with get, set
abstract ref: Ref<ActivityIndicatorIOSStatic> option with get, set
and ActivityIndicatorIOSStatic =
inherit React.ComponentClass<ActivityIndicatorIOSProperties>
and DatePickerIOSProperties =
inherit ViewProperties
inherit React.Props<DatePickerIOSStatic>
abstract date: DateTime option with get, set
abstract maximumDate: DateTime option with get, set
abstract minimumDate: DateTime option with get, set
abstract minuteInterval: float option with get, set
abstract mode: (* TODO StringEnum date | time | datetime *) string option with get, set
abstract onDateChange: (DateTime -> unit) option with get, set
abstract timeZoneOffsetInMinutes: float option with get, set
abstract ref: Ref<DatePickerIOSStatic> option with get, set
and DatePickerIOSStatic =
inherit React.ComponentClass<DatePickerIOSProperties>
and DrawerSlideEvent =
inherit NativeSyntheticEvent<NativeTouchEvent>
and DrawerLayoutAndroidPosition =
interface end
and DrawerLayoutAndroidPositions =
abstract member Left: DrawerLayoutAndroidPosition
abstract member Right: DrawerLayoutAndroidPosition
and DrawerLayoutAndroidProperties =
inherit ViewProperties
inherit React.Props<DrawerLayoutAndroidStatic>
abstract drawerBackgroundColor: string option with get, set
abstract drawerLockMode: (* TODO StringEnum unlocked | locked-closed | locked-open *) string option with get, set
abstract drawerPosition: obj option with get, set
abstract drawerWidth: float option with get, set
abstract keyboardDismissMode: (* TODO StringEnum none | on-drag *) string option with get, set
abstract onDrawerClose: (unit -> unit) option with get, set
abstract onDrawerOpen: (unit -> unit) option with get, set
abstract onDrawerSlide: (DrawerSlideEvent -> unit) option with get, set
abstract onDrawerStateChanged: ((* TODO StringEnum Idle | Dragging | Settling *) string -> unit) option with get, set
abstract renderNavigationView: (unit -> JSX.Element) option with get, set
abstract statusBarBackgroundColor: obj option with get, set
abstract ref: Ref<obj> option with get, set
and DrawerLayoutAndroidStatic =
inherit React.ComponentClass<DrawerLayoutAndroidProperties>
abstract positions: obj with get, set
abstract openDrawer: (unit -> unit)
abstract closeDrawer: (unit -> unit)
and PickerIOSItemProperties =
inherit React.Props<PickerIOSItemStatic>
abstract value: U2<string, float> option with get, set
abstract label: string option with get, set
and PickerIOSItemStatic =
inherit React.ComponentClass<PickerIOSItemProperties>
and PickerItemProperties =
inherit React.Props<PickerItemStatic>
abstract label: string with get, set
abstract value: obj option with get, set
abstract color: string option with get, set
abstract testID: string option with get, set
and PickerItemStatic =
inherit React.ComponentClass<PickerItemProperties>
and PickerPropertiesIOS =
inherit ViewProperties
inherit React.Props<PickerStatic>
abstract itemStyle: ViewStyle option with get, set
abstract ref: Ref<obj> option with get, set
and PickerPropertiesAndroid =
inherit ViewProperties
inherit React.Props<PickerStatic>
abstract enabled: bool option with get, set
abstract mode: (* TODO StringEnum dialog | dropdown *) string option with get, set
abstract prompt: string option with get, set
abstract ref: Ref<obj> option with get, set
and PickerProperties =
inherit PickerPropertiesIOS
inherit PickerPropertiesAndroid
inherit React.Props<PickerStatic>
abstract onValueChange: (obj -> float -> unit) option with get, set
abstract selectedValue: obj option with get, set
abstract style: ViewStyle option with get, set
abstract testId: string option with get, set
abstract ref: Ref<PickerStatic> option with get, set
and PickerStatic =
inherit React.ComponentClass<PickerProperties>
abstract Item: PickerItemStatic with get, set
and PickerIOSProperties =
inherit React.Props<PickerIOSStatic>
abstract itemStyle: ViewStyle option with get, set
and PickerIOSStatic =
inherit React.ComponentClass<PickerIOSProperties>
abstract Item: PickerIOSItemStatic with get, set
and ProgressBarAndroidProperties =
inherit ViewProperties
inherit React.Props<ProgressBarAndroidStatic>
abstract style: ViewStyle option with get, set
abstract styleAttr: (* TODO StringEnum Horizontal | Normal | Small | Large | Inverse | SmallInverse | LargeInverse *) string option with get, set
abstract indeterminate: bool option with get, set
abstract progress: float option with get, set
abstract color: string option with get, set
abstract testID: string option with get, set
abstract ref: Ref<ProgressBarAndroidStatic> option with get, set
and ProgressBarAndroidStatic =
inherit React.ComponentClass<ProgressBarAndroidProperties>
and ProgressViewIOSProperties =
inherit ViewProperties
inherit React.Props<ProgressViewIOSStatic>
abstract style: ViewStyle option with get, set
abstract progressViewStyle: (* TODO StringEnum default | bar *) string option with get, set
abstract progress: float option with get, set
abstract progressTintColor: string option with get, set
abstract trackTintColor: string option with get, set
abstract progressImage: obj option with get, set
abstract trackImage: obj option with get, set
abstract ref: Ref<ProgressViewIOSStatic> option with get, set
and ProgressViewIOSStatic =
inherit React.ComponentClass<ProgressViewIOSProperties>