-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathReactNative.fs
7798 lines (7129 loc) · 394 KB
/
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
// ts2fable 0.0.0
module rec ReactNative
#nowarn "3390" // disable warnings for invalid XML comments
#nowarn "0044" // disable warnings for `Obsolete` usage
open System
open Fable.Core
open Fable.Core.JS
type Array<'T> = System.Collections.Generic.IList<'T>
type Error = System.Exception
type ReadonlyArray<'T> = System.Collections.Generic.IReadOnlyList<'T>
module PropTypes = Prop_types
/// <summary>
/// <c>AppRegistry</c> is the JS entry point to running all React Native apps. App
/// root components should register themselves with
/// <c>AppRegistry.registerComponent</c>, then the native system can load the bundle
/// for the app and then actually run the app when it's ready by invoking
/// <c>AppRegistry.runApplication</c>.
///
/// To "stop" an application when a view should be destroyed, call
/// <c>AppRegistry.unmountApplicationComponentAtRootTag</c> with the tag that was
/// pass into <c>runApplication</c>. These should always be used as a pair.
///
/// <c>AppRegistry</c> should be <c>require</c>d early in the <c>require</c> sequence to make
/// sure the JS execution environment is setup before other modules are
/// <c>require</c>d.
/// </summary>
let [<Import("AppRegistry","react-native")>] appRegistry: AppRegistry.IExports = jsNative
let [<Import("StyleSheet","react-native")>] styleSheet: StyleSheet.IExports = jsNative
let [<Import("Animated","react-native")>] animated: Animated.IExports = jsNative
let [<Import("addons","react-native")>] addons: Addons.IExports = jsNative
let [<Import("TextBase","react-native")>] TextBase: obj = jsNative
let [<Import("TextInputBase","react-native")>] TextInputBase: obj = jsNative
let [<Import("ToolbarAndroidBase","react-native")>] ToolbarAndroidBase: obj = jsNative
let [<Import("ViewBase","react-native")>] ViewBase: obj = jsNative
let [<Import("ViewPagerAndroidBase","react-native")>] ViewPagerAndroidBase: obj = jsNative
let [<Import("KeyboardAvoidingViewBase","react-native")>] KeyboardAvoidingViewBase: obj = jsNative
let [<Import("SafeAreaViewBase","react-native")>] SafeAreaViewBase: obj = jsNative
let [<Import("SegmentedControlIOSBase","react-native")>] SegmentedControlIOSBase: obj = jsNative
let [<Import("ActivityIndicatorBase","react-native")>] ActivityIndicatorBase: obj = jsNative
let [<Import("DatePickerIOSBase","react-native")>] DatePickerIOSBase: obj = jsNative
let [<Import("DrawerLayoutAndroidBase","react-native")>] DrawerLayoutAndroidBase: obj = jsNative
let [<Import("PickerIOSBase","react-native")>] PickerIOSBase: obj = jsNative
let [<Import("ProgressBarAndroidBase","react-native")>] ProgressBarAndroidBase: obj = jsNative
let [<Import("ProgressViewIOSBase","react-native")>] ProgressViewIOSBase: obj = jsNative
let [<Import("RefreshControlBase","react-native")>] RefreshControlBase: obj = jsNative
let [<Import("RecyclerViewBackedScrollViewBase","react-native")>] RecyclerViewBackedScrollViewBase: obj = jsNative
let [<Import("SliderBase","react-native")>] SliderBase: obj = jsNative
let [<Import("ImageBase","react-native")>] ImageBase: obj = jsNative
let [<Import("ImageBackgroundBase","react-native")>] ImageBackgroundBase: obj = jsNative
let [<Import("ListViewBase","react-native")>] ListViewBase: obj = jsNative
let [<Import("MapViewBase","react-native")>] MapViewBase: obj = jsNative
let [<Import("MaskedViewBase","react-native")>] MaskedViewBase: obj = jsNative
let [<Import("TouchableWithoutFeedbackBase","react-native")>] TouchableWithoutFeedbackBase: obj = jsNative
let [<Import("TouchableHighlightBase","react-native")>] TouchableHighlightBase: obj = jsNative
let [<Import("TouchableOpacityBase","react-native")>] TouchableOpacityBase: obj = jsNative
let [<Import("TouchableNativeFeedbackBase","react-native")>] TouchableNativeFeedbackBase: obj = jsNative
let [<Import("ScrollViewBase","react-native")>] ScrollViewBase: obj = jsNative
let [<Import("SnapshotViewIOSBase","react-native")>] SnapshotViewIOSBase: obj = jsNative
let [<Import("SwitchBase","react-native")>] SwitchBase: obj = jsNative
let [<Import("ART","react-native")>] ART: ARTStatic = jsNative
let [<Import("ImagePickerIOS","react-native")>] ImagePickerIOS: ImagePickerIOSStatic = jsNative
let [<Import("LayoutAnimation","react-native")>] LayoutAnimation: LayoutAnimationStatic = jsNative
let [<Import("SectionList","react-native")>] SectionList: SectionListStatic<obj option> = jsNative
let [<Import("Systrace","react-native")>] Systrace: SystraceStatic = jsNative
let [<Import("ActionSheetIOS","react-native")>] ActionSheetIOS: ActionSheetIOSStatic = jsNative
let [<Import("Share","react-native")>] Share: ShareStatic = jsNative
let [<Import("AdSupportIOS","react-native")>] AdSupportIOS: AdSupportIOSStatic = jsNative
let [<Import("AccessibilityInfo","react-native")>] AccessibilityInfo: AccessibilityInfoStatic = jsNative
let [<Import("Alert","react-native")>] Alert: AlertStatic = jsNative
let [<Import("AlertAndroid","react-native")>] AlertAndroid: AlertAndroidStatic = jsNative
let [<Import("AlertIOS","react-native")>] AlertIOS: AlertIOSStatic = jsNative
let [<Import("AppState","react-native")>] AppState: AppStateStatic = jsNative
let [<Import("AppStateIOS","react-native")>] AppStateIOS: AppStateStatic = jsNative
let [<Import("AsyncStorage","react-native")>] AsyncStorage: AsyncStorageStatic = jsNative
let [<Import("BackAndroid","react-native")>] BackAndroid: BackAndroidStatic = jsNative
let [<Import("BackHandler","react-native")>] BackHandler: BackHandlerStatic = jsNative
let [<Import("CameraRoll","react-native")>] CameraRoll: CameraRollStatic = jsNative
let [<Import("Clipboard","react-native")>] Clipboard: ClipboardStatic = jsNative
let [<Import("DatePickerAndroid","react-native")>] DatePickerAndroid: DatePickerAndroidStatic = jsNative
let [<Import("Geolocation","react-native")>] Geolocation: GeolocationStatic = jsNative
/// <summary><see href="http://facebook.github.io/react-native/blog/2016/08/19/right-to-left-support-for-react-native-apps.html" /></summary>
let [<Import("I18nManager","react-native")>] I18nManager: I18nManagerStatic = jsNative
let [<Import("ImageEditor","react-native")>] ImageEditor: ImageEditorStatic = jsNative
let [<Import("ImageStore","react-native")>] ImageStore: ImageStoreStatic = jsNative
let [<Import("InteractionManager","react-native")>] InteractionManager: InteractionManagerStatic = jsNative
let [<Import("IntentAndroid","react-native")>] IntentAndroid: IntentAndroidStatic = jsNative
let [<Import("Keyboard","react-native")>] Keyboard: KeyboardStatic = jsNative
let [<Import("Linking","react-native")>] Linking: LinkingStatic = jsNative
let [<Import("LinkingIOS","react-native")>] LinkingIOS: LinkingIOSStatic = jsNative
let [<Import("NativeMethodsMixin","react-native")>] NativeMethodsMixin: NativeMethodsMixinStatic = jsNative
let [<Import("NativeComponent","react-native")>] NativeComponent: NativeMethodsMixinStatic = jsNative
let [<Import("NetInfo","react-native")>] NetInfo: NetInfoStatic = jsNative
let [<Import("PanResponder","react-native")>] PanResponder: PanResponderStatic = jsNative
let [<Import("PermissionsAndroid","react-native")>] PermissionsAndroid: PermissionsAndroidStatic = jsNative
let [<Import("PushNotificationIOS","react-native")>] PushNotificationIOS: PushNotificationIOSStatic = jsNative
let [<Import("Settings","react-native")>] Settings: SettingsStatic = jsNative
let [<Import("StatusBarIOS","react-native")>] StatusBarIOS: StatusBarIOSStatic = jsNative
let [<Import("TimePickerAndroid","react-native")>] TimePickerAndroid: TimePickerAndroidStatic = jsNative
let [<Import("ToastAndroid","react-native")>] ToastAndroid: ToastAndroidStatic = jsNative
let [<Import("UIManager","react-native")>] UIManager: UIManagerStatic = jsNative
let [<Import("VibrationIOS","react-native")>] VibrationIOS: VibrationIOSStatic = jsNative
let [<Import("Vibration","react-native")>] Vibration: VibrationStatic = jsNative
/// <summary>
/// Initial dimensions are set before <c>runApplication</c> is called so they should
/// be available before any other require's are run, but may be updated later.
///
/// Note: Although dimensions are available immediately, they may change (e.g
/// due to device rotation) so any rendering logic or styles that depend on
/// these constants should try to call this function on every render, rather
/// than caching the value (for example, using inline styles rather than
/// setting a value in a <c>StyleSheet</c>).
///
/// Example: <c>const {height, width} = Dimensions.get('window');</c>
/// </summary>
let [<Import("Dimensions","react-native")>] Dimensions: Dimensions = jsNative
let [<Import("ShadowPropTypesIOS","react-native")>] ShadowPropTypesIOS: ShadowPropTypesIOSStatic = jsNative
let [<Import("Easing","react-native")>] Easing: EasingStatic = jsNative
let [<Import("DeviceEventEmitter","react-native")>] DeviceEventEmitter: DeviceEventEmitterStatic = jsNative
/// Abstract base class for implementing event-emitting modules. This implements
/// a subset of the standard EventEmitter node module API.
let [<Import("NativeEventEmitter","react-native")>] NativeEventEmitter: NativeEventEmitter = jsNative
/// Deprecated - subclass NativeEventEmitter to create granular event modules instead of
/// adding all event listeners directly to RCTNativeAppEventEmitter.
let [<Import("NativeAppEventEmitter","react-native")>] NativeAppEventEmitter: RCTNativeAppEventEmitter = jsNative
/// <summary>
/// Native Modules written in ObjectiveC/Swift/Java exposed via the RCTBridge
/// Define lazy getters for each module. These will return the module if already loaded, or load it if not.
/// See <see href="https://facebook.github.io/react-native/docs/native-modules-ios.html" />
/// Use:
/// <code>const MyModule = NativeModules.ModuleName</code>
/// </summary>
let [<Import("NativeModules","react-native")>] NativeModules: NativeModulesStatic = jsNative
let [<Import("Platform","react-native")>] Platform: PlatformStatic = jsNative
let [<Import("PlatformIOS","react-native")>] PlatformIOS: PlatformIOSStatic = jsNative
let [<Import("PixelRatio","react-native")>] PixelRatio: PixelRatioStatic = jsNative
let [<Import("YellowBox","react-native")>] YellowBox: obj = jsNative
let [<Import("ColorPropType","react-native")>] ColorPropType: React.Validator<string> = jsNative
let [<Import("EdgeInsetsPropType","react-native")>] EdgeInsetsPropType: React.Validator<Insets> = jsNative
let [<Import("PointPropType","react-native")>] PointPropType: React.Validator<PointPropType> = jsNative
let [<Import("ViewPropTypes","react-native")>] ViewPropTypes: React.ValidationMap<ViewProps> = jsNative
type [<AllowNullLiteral>] IExports =
/// EventSubscription represents a subscription to a particular event. It can
/// remove its own subscription.
abstract EventSubscription: EventSubscriptionStatic
/// EmitterSubscription represents a subscription with listener and context data.
abstract EmitterSubscription: EmitterSubscriptionStatic
abstract EventEmitter: EventEmitterStatic
abstract createElement: ``type``: React.ReactType * ?props: 'P * [<ParamArray>] children: React.ReactNode[] -> React.ReactElement<'P>
/// A React component for displaying text which supports nesting, styling, and touch handling.
abstract TextComponent: TextComponentStatic
abstract Text: TextStatic
/// DocumentSelectionState is responsible for maintaining selection information
/// for a document.
///
/// It is intended for use by AbstractTextEditor-based components for
/// identifying the appropriate start/end positions to modify the
/// DocumentContent, and for programatically setting browser selection when
/// components re-render.
abstract DocumentSelectionState: DocumentSelectionStateStatic
/// <seealso href="https://facebook.github.io/react-native/docs/textinput.html#methods" />
abstract TextInputComponent: TextInputComponentStatic
abstract TextInput: TextInputStatic
/// <summary>
/// React component that wraps the Android-only [<c>Toolbar</c> widget][0]. A Toolbar can display a logo,
/// navigation icon (e.g. hamburger menu), a title & subtitle and a list of actions. The title and
/// subtitle are expanded so the logo and navigation icons are displayed on the left, title and
/// subtitle in the middle and the actions on the right.
///
/// If the toolbar has an only child, it will be displayed between the title and actions.
///
/// Although the Toolbar supports remote images for the logo, navigation and action icons, this
/// should only be used in DEV mode where <c>require('./some_icon.png')</c> translates into a packager
/// URL. In release mode you should always use a drawable resource for these icons. Using
/// <c>require('./some_icon.png')</c> will do this automatically for you, so as long as you don't
/// explicitly use e.g. <c>{uri: 'http://...'}</c>, you will be good.
///
/// [0]: <see href="https://developer.android.com/reference/android/support/v7/widget/Toolbar.html" />
/// </summary>
abstract ToolbarAndroidComponent: ToolbarAndroidComponentStatic
abstract ToolbarAndroid: ToolbarAndroidStatic
/// The most fundamental component for building UI, View is a container that supports layout with flexbox, style, some touch handling,
/// and accessibility controls, and is designed to be nested inside other views and to have 0 to many children of any type.
/// View maps directly to the native view equivalent on whatever platform React is running on,
/// whether that is a UIView, <div>, android.view, etc.
abstract ViewComponent: ViewComponentStatic
abstract View: ViewStatic
abstract ViewPagerAndroidComponent: ViewPagerAndroidComponentStatic
abstract ViewPagerAndroid: ViewPagerAndroidStatic
/// It is a component to solve the common problem of views that need to move out of the way of the virtual keyboard.
/// It can automatically adjust either its position or bottom padding based on the position of the keyboard.
abstract KeyboardAvoidingViewComponent: KeyboardAvoidingViewComponentStatic
abstract KeyboardAvoidingView: KeyboardAvoidingViewStatic
abstract WebView: WebViewStatic
/// Renders nested content and automatically applies paddings reflect the portion of the view
/// that is not covered by navigation bars, tab bars, toolbars, and other ancestor views.
/// Moreover, and most importantly, Safe Area's paddings feflect physical limitation of the screen,
/// such as rounded corners or camera notches (aka sensor housing area on iPhone X).
abstract SafeAreaViewComponent: SafeAreaViewComponentStatic
abstract SafeAreaView: SafeAreaViewStatic
/// A component which enables customization of the keyboard input accessory view on iOS. The input accessory view is
/// displayed above the keyboard whenever a TextInput has focus. This component can be used to create custom toolbars.
///
/// To use this component wrap your custom toolbar with the InputAccessoryView component, and set a nativeID. Then, pass
/// that nativeID as the inputAccessoryViewID of whatever TextInput you desire.
abstract InputAccessoryView: InputAccessoryViewStatic
/// <summary>
/// Use <c>SegmentedControlIOS</c> to render a UISegmentedControl iOS.
///
/// #### Programmatically changing selected index
///
/// The selected index can be changed on the fly by assigning the
/// selectIndex prop to a state variable, then changing that variable.
/// Note that the state variable would need to be updated as the user
/// selects a value and changes the index, as shown in the example below.
///
/// <code lang="`">
/// <SegmentedControlIOS
/// values={['One', 'Two']}
/// selectedIndex={this.state.selectedIndex}
/// onChange={(event) => {
/// this.setState({selectedIndex: event.nativeEvent.selectedSegmentIndex});
/// }}
/// />
/// </code>
/// </summary>
abstract SegmentedControlIOSComponent: SegmentedControlIOSComponentStatic
abstract SegmentedControlIOS: SegmentedControlIOSStatic
/// <summary>
/// A navigator is an object of navigation functions that a view can call.
/// It is passed as a prop to any component rendered by NavigatorIOS.
///
/// Navigator functions are also available on the NavigatorIOS component:
/// </summary>
/// <seealso href="https://facebook.github.io/react-native/docs/navigatorios.html#navigator" />
abstract NavigatorIOS: NavigatorIOSStatic
abstract ActivityIndicatorComponent: ActivityIndicatorComponentStatic
abstract ActivityIndicator: ActivityIndicatorStatic
[<Obsolete("since version 0.28.0")>]
abstract ActivityIndicatorIOS: ActivityIndicatorIOSStatic
abstract DatePickerIOSComponent: DatePickerIOSComponentStatic
abstract DatePickerIOS: DatePickerIOSStatic
abstract DrawerLayoutAndroidComponent: DrawerLayoutAndroidComponentStatic
abstract DrawerLayoutAndroid: DrawerLayoutAndroidStatic
/// <seealso cref="PickerIOS.ios.js" />
abstract PickerIOSItem: PickerIOSItemStatic
abstract PickerItem: PickerItemStatic
/// <seealso href="https://facebook.github.io/react-native/docs/picker.html" />
/// <seealso cref="Picker.js" />
abstract Picker: PickerStatic
/// <seealso href="https://facebook.github.io/react-native/docs/pickerios.html" />
/// <seealso cref="PickerIOS.ios.js" />
abstract PickerIOSComponent: PickerIOSComponentStatic
abstract PickerIOS: PickerIOSStatic
/// <summary>
/// React component that wraps the Android-only <c>ProgressBar</c>. This component is used to indicate
/// that the app is loading or there is some activity in the app.
/// </summary>
abstract ProgressBarAndroidComponent: ProgressBarAndroidComponentStatic
abstract ProgressBarAndroid: ProgressBarAndroidStatic
abstract ProgressViewIOSComponent: ProgressViewIOSComponentStatic
abstract ProgressViewIOS: ProgressViewIOSStatic
/// <summary>
/// This component is used inside a ScrollView or ListView to add pull to refresh
/// functionality. When the ScrollView is at <c>scrollY: 0</c>, swiping down
/// triggers an <c>onRefresh</c> event.
///
/// __Note:__ <c>refreshing</c> is a controlled prop, this is why it needs to be set to true
/// in the <c>onRefresh</c> function otherwise the refresh indicator will stop immediately.
/// </summary>
abstract RefreshControlComponent: RefreshControlComponentStatic
abstract RefreshControl: RefreshControlStatic
/// <summary>
/// Wrapper around android native recycler view.
///
/// It simply renders rows passed as children in a separate recycler view cells
/// similarly to how <c>ScrollView</c> is doing it. Thanks to the fact that it uses
/// native <c>RecyclerView</c> though, rows that are out of sight are going to be
/// automatically detached (similarly on how this would work with
/// <c>removeClippedSubviews = true</c> on a <c>ScrollView.js</c>).
///
/// CAUTION: This is an experimental component and should only be used together
/// with javascript implementation of list view (see ListView.js). In order to
/// use it pass this component as <c>renderScrollComponent</c> to the list view. For
/// now only horizontal scrolling is supported.
/// </summary>
abstract RecyclerViewBackedScrollViewComponent: RecyclerViewBackedScrollViewComponentStatic
abstract RecyclerViewBackedScrollView: RecyclerViewBackedScrollViewStatic
/// A component used to select a single value from a range of values.
abstract SliderComponent: SliderComponentStatic
abstract Slider: SliderStatic
/// <summary>
///
/// Use SwitchIOS to render a boolean input on iOS.
///
/// This is a controlled component, so you must hook in to the onValueChange callback and update the value prop in order for the component to update,
/// otherwise the user's change will be reverted immediately to reflect props.value as the source of truth.
/// </summary>
/// <seealso href="https://facebook.github.io/react-native/docs/switchios.html" />
abstract SwitchIOS: SwitchIOSStatic
abstract ImageComponent: ImageComponentStatic
abstract Image: ImageStatic
abstract ImageBackgroundComponent: ImageBackgroundComponentStatic
abstract ImageBackground: ImageBackgroundStatic
abstract FlatList: FlatListStatic
abstract ListViewComponent: ListViewComponentStatic
abstract ListView: ListViewStatic
/// <seealso href="https://facebook.github.io/react-native/docs/mapview.html#content" />
abstract MapViewComponent: MapViewComponentStatic
abstract MapView: MapViewStatic
/// <seealso href="https://facebook.github.io/react-native/docs/maskedviewios.html" />
abstract MaskedViewComponent: MaskedViewComponentStatic
abstract MaskedViewIOS: MaskedViewIOSStatic
abstract Modal: ModalStatic
/// <summary>
/// Do not use unless you have a very good reason.
/// All the elements that respond to press should have a visual feedback when touched.
/// This is one of the primary reason a "web" app doesn't feel "native".
/// </summary>
/// <seealso href="https://facebook.github.io/react-native/docs/touchablewithoutfeedback.html" />
abstract TouchableWithoutFeedbackComponent: TouchableWithoutFeedbackComponentStatic
abstract TouchableWithoutFeedback: TouchableWithoutFeedbackStatic
/// <summary>
/// A wrapper for making views respond properly to touches.
/// On press down, the opacity of the wrapped view is decreased,
/// which allows the underlay color to show through, darkening or tinting the view.
/// The underlay comes from adding a view to the view hierarchy,
/// which can sometimes cause unwanted visual artifacts if not used correctly,
/// for example if the backgroundColor of the wrapped view isn't explicitly set to an opaque color.
///
/// NOTE: TouchableHighlight supports only one child
/// If you wish to have several child components, wrap them in a View.
/// </summary>
/// <seealso href="https://facebook.github.io/react-native/docs/touchablehighlight.html" />
abstract TouchableHighlightComponent: TouchableHighlightComponentStatic
abstract TouchableHighlight: TouchableHighlightStatic
/// <summary>
/// A wrapper for making views respond properly to touches.
/// On press down, the opacity of the wrapped view is decreased, dimming it.
/// This is done without actually changing the view hierarchy,
/// and in general is easy to add to an app without weird side-effects.
/// </summary>
/// <seealso href="https://facebook.github.io/react-native/docs/touchableopacity.html" />
abstract TouchableOpacityComponent: TouchableOpacityComponentStatic
abstract TouchableOpacity: TouchableOpacityStatic
/// <summary>
/// A wrapper for making views respond properly to touches (Android only).
/// On Android this component uses native state drawable to display touch feedback.
/// At the moment it only supports having a single View instance as a child node,
/// as it's implemented by replacing that View with another instance of RCTView node with some additional properties set.
///
/// Background drawable of native feedback touchable can be customized with background property.
/// </summary>
/// <seealso href="https://facebook.github.io/react-native/docs/touchablenativefeedback.html#content" />
abstract TouchableNativeFeedbackComponent: TouchableNativeFeedbackComponentStatic
abstract TouchableNativeFeedback: TouchableNativeFeedbackStatic
/// <summary>
/// Provides efficient data processing and access to the
/// <c>ListView</c> component. A <c>ListViewDataSource</c> is created with functions for
/// extracting data from the input blob, and comparing elements (with default
/// implementations for convenience). The input blob can be as simple as an
/// array of strings, or an object with rows nested inside section objects.
///
/// To update the data in the datasource, use <c>cloneWithRows</c> (or
/// <c>cloneWithRowsAndSections</c> if you care about sections). The data in the
/// data source is immutable, so you can't modify it directly. The clone methods
/// suck in the new data and compute a diff for each row so ListView knows
/// whether to re-render it or not.
/// </summary>
abstract ListViewDataSource: ListViewDataSourceStatic
abstract TabBarIOSItem: TabBarIOSItemStatic
abstract TabBarIOS: TabBarIOSStatic
/// Deprecated - subclass NativeEventEmitter to create granular event modules instead of
/// adding all event listeners directly to RCTDeviceEventEmitter.
abstract DeviceEventEmitter: DeviceEventEmitterStaticStatic
abstract ScrollViewComponent: ScrollViewComponentStatic
abstract ScrollView: ScrollViewStatic
abstract SnapshotViewIOSComponent: SnapshotViewIOSComponentStatic
abstract SnapshotViewIOS: SnapshotViewIOSStatic
/// <summary>
/// A container component that renders multiple SwipeableRow's in a ListView
/// implementation. This is designed to be a drop-in replacement for the
/// standard React Native <c>ListView</c>, so use it as if it were a ListView, but
/// with extra props, i.e.
///
/// let ds = SwipeableListView.getNewDataSource();
/// ds.cloneWithRowsAndSections(dataBlob, ?sectionIDs, ?rowIDs);
/// // ..
/// <SwipeableListView renderRow={..} renderQuickActions={..} {..ListView props} />
///
/// SwipeableRow can be used independently of this component, but the main
/// benefit of using this component is
///
/// - It ensures that at most 1 row is swiped open (auto closes others)
/// - It can bounce the 1st row of the list so users know it's swipeable
/// - More to come
/// </summary>
abstract SwipeableListView: SwipeableListViewStatic
abstract Button: ButtonStatic
abstract PermissionsAndroid: PermissionsAndroidStaticStatic
abstract StatusBar: StatusBarStatic
/// <summary>
/// Renders a boolean input.
///
/// This is a controlled component that requires an <c>onValueChange</c> callback that
/// updates the <c>value</c> prop in order for the component to reflect user actions.
/// If the <c>value</c> prop is not updated, the component will continue to render
/// the supplied <c>value</c> prop instead of the expected result of any user actions.
/// </summary>
abstract SwitchComponent: SwitchComponentStatic
abstract Switch: SwitchStatic
abstract ClippingRectangle: ClippingRectangleStatic
abstract Group: GroupStatic
abstract Shape: ShapeStatic
abstract Surface: SurfaceStatic
abstract ARTText: ARTTextStatic
/// <summary>
/// Used to create React components that directly wrap native component
/// implementations. Config information is extracted from data exported from the
/// UIManager module. You should also wrap the native component in a
/// hand-written component with full propTypes definitions and other
/// documentation - pass the hand-written component in as <c>componentInterface</c> to
/// verify all the native props are documented via <c>propTypes</c>.
///
/// If some native props shouldn't be exposed in the wrapper interface, you can
/// pass null for <c>componentInterface</c> and call <c>verifyPropTypes</c> directly
/// with <c>nativePropsToIgnore</c>;
///
/// Common types are lined up with the appropriate prop differs with
/// <c>TypeToDifferMap</c>. Non-scalar types not in the map default to <c>deepDiffer</c>.
/// </summary>
abstract requireNativeComponent: viewName: string * ?componentInterface: ComponentInterface<'P> * ?extraConfig: {| nativeOnly: 'NP option |} -> React.ComponentClass<obj>
abstract findNodeHandle: componentOrHandle: U3<float, React.Component<obj option, obj option>, React.ComponentClass<obj option>> option -> float option
abstract processColor: color: obj option -> float
abstract __spread: target: obj option * [<ParamArray>] sources: obj option[] -> obj option
abstract require: name: string -> obj option
abstract console: Console
abstract navigator: Navigator
/// <summary>
/// This contains the non-native <c>XMLHttpRequest</c> object, which you can use if you want to route network requests
/// through DevTools (to trace them):
///
/// global.XMLHttpRequest = global.originalXMLHttpRequest;
/// </summary>
/// <seealso href="https://github.com/facebook/react-native/issues/934" />
abstract originalXMLHttpRequest: obj option
abstract __BUNDLE_START_TIME__: float
abstract ErrorUtils: ErrorUtils
/// This variable is set to true when react-native is running in Dev mode
/// Typical usage:
/// <code> if (__DEV__) console.log('Running in dev mode')</code>
abstract __DEV__: bool
type Constructor<'T> =
obj
type [<AllowNullLiteral>] MeasureOnSuccessCallback =
[<Emit("$0($1...)")>] abstract Invoke: x: float * y: float * width: float * height: float * pageX: float * pageY: float -> unit
type [<AllowNullLiteral>] MeasureInWindowOnSuccessCallback =
[<Emit("$0($1...)")>] abstract Invoke: x: float * y: float * width: float * height: float -> unit
type [<AllowNullLiteral>] MeasureLayoutOnSuccessCallback =
[<Emit("$0($1...)")>] abstract Invoke: left: float * top: float * width: float * height: float -> unit
/// EventSubscription represents a subscription to a particular event. It can
/// remove its own subscription.
type [<AllowNullLiteral>] EventSubscription =
abstract eventType: string with get, set
abstract key: float with get, set
abstract subscriber: EventSubscriptionVendor with get, set
/// Removes this subscription from the subscriber that controls it.
abstract remove: unit -> unit
/// EventSubscription represents a subscription to a particular event. It can
/// remove its own subscription.
type [<AllowNullLiteral>] EventSubscriptionStatic =
/// <param name="subscriber">
/// the subscriber that controls
/// this subscription.
/// </param>
[<EmitConstructor>] abstract Create: subscriber: EventSubscriptionVendor -> EventSubscription
/// EventSubscriptionVendor stores a set of EventSubscriptions that are
/// subscribed to a particular event type.
type [<AllowNullLiteral>] EventSubscriptionVendor =
abstract constructor: unit -> EventSubscriptionVendor
/// Adds a subscription keyed by an event type.
abstract addSubscription: eventType: string * subscription: EventSubscription -> EventSubscription
/// <summary>Removes a bulk set of the subscriptions.</summary>
/// <param name="eventType">
/// Optional name of the event type whose
/// registered supscriptions to remove, if null remove all subscriptions.
/// </param>
abstract removeAllSubscriptions: ?eventType: string -> unit
/// <summary>
/// Removes a specific subscription. Instead of calling this function, call
/// <c>subscription.remove()</c> directly.
/// </summary>
abstract removeSubscription: subscription: obj option -> unit
/// Returns the array of subscriptions that are currently registered for the
/// given event type.
///
/// Note: This array can be potentially sparse as subscriptions are deleted
/// from it when they are removed.
abstract getSubscriptionsForType: eventType: string -> ResizeArray<EventSubscription>
/// EmitterSubscription represents a subscription with listener and context data.
type [<AllowNullLiteral>] EmitterSubscription =
inherit EventSubscription
abstract emitter: EventEmitter with get, set
abstract listener: (unit -> obj option) with get, set
abstract context: obj option with get, set
/// <summary>
/// Removes this subscription from the emitter that registered it.
/// Note: we're overriding the <c>remove()</c> method of EventSubscription here
/// but deliberately not calling <c>super.remove()</c> as the responsibility
/// for removing the subscription lies with the EventEmitter.
/// </summary>
abstract remove: unit -> unit
/// EmitterSubscription represents a subscription with listener and context data.
type [<AllowNullLiteral>] EmitterSubscriptionStatic =
/// <param name="emitter">
/// The event emitter that registered this
/// subscription
/// </param>
/// <param name="subscriber">
/// The subscriber that controls
/// this subscription
/// </param>
/// <param name="listener">
/// Function to invoke when the specified event is
/// emitted
/// </param>
/// <param name="context">
/// Optional context object to use when invoking the
/// listener
/// </param>
[<EmitConstructor>] abstract Create: emitter: EventEmitter * subscriber: EventSubscriptionVendor * listener: (unit -> obj option) * context: obj option -> EmitterSubscription
type [<AllowNullLiteral>] EventEmitterListener =
/// <summary>
/// Adds a listener to be invoked when events of the specified type are
/// emitted. An optional calling context may be provided. The data arguments
/// emitted will be passed to the listener function.
/// </summary>
/// <param name="eventType">Name of the event to listen to</param>
/// <param name="listener">
/// Function to invoke when the specified event is
/// emitted
/// </param>
/// <param name="context">
/// Optional context object to use when invoking the
/// listener
/// </param>
abstract addListener: eventType: string * listener: (ResizeArray<obj option> -> obj option) * ?context: obj -> EmitterSubscription
type [<AllowNullLiteral>] EventEmitter =
inherit EventEmitterListener
/// <summary>
/// Similar to addListener, except that the listener is removed after it is
/// invoked once.
/// </summary>
/// <param name="eventType">Name of the event to listen to</param>
/// <param name="listener">
/// Function to invoke only once when the
/// specified event is emitted
/// </param>
/// <param name="context">
/// Optional context object to use when invoking the
/// listener
/// </param>
abstract once: eventType: string * listener: (ResizeArray<obj option> -> obj option) * context: obj option -> EmitterSubscription
/// <summary>
/// Removes all of the registered listeners, including those registered as
/// listener maps.
/// </summary>
/// <param name="eventType">
/// Optional name of the event whose registered
/// listeners to remove
/// </param>
abstract removeAllListeners: ?eventType: string -> unit
/// <summary>
/// Provides an API that can be called during an eventing cycle to remove the
/// last listener that was invoked. This allows a developer to provide an event
/// object that can remove the listener (or listener map) during the
/// invocation.
///
/// If it is called when not inside of an emitting cycle it will throw.
/// </summary>
/// <exception cref="Error">When called not during an eventing cycle</exception>
/// <example>
/// const subscription = emitter.addListenerMap({
/// someEvent: function(data, event) {
/// console.log(data);
/// emitter.removeCurrentListener();
/// }
/// });
///
/// emitter.emit('someEvent', 'abc'); // logs 'abc'
/// emitter.emit('someEvent', 'def'); // does not log anything
/// </example>
abstract removeCurrentListener: unit -> unit
/// <summary>
/// Removes a specific subscription. Called by the <c>remove()</c> method of the
/// subscription itself to ensure any necessary cleanup is performed.
/// </summary>
abstract removeSubscription: subscription: EmitterSubscription -> unit
/// <summary>
/// Returns an array of listeners that are currently registered for the given
/// event.
/// </summary>
/// <param name="eventType">Name of the event to query</param>
abstract listeners: eventType: string -> ResizeArray<EmitterSubscription>
/// <summary>
/// Emits an event of the given type with the given data. All handlers of that
/// particular type will be notified.
/// </summary>
/// <param name="eventType">Name of the event to emit</param>
/// <param name="Arbitrary">arguments to be passed to each registered listener</param>
/// <example>
/// emitter.addListener('someEvent', function(message) {
/// console.log(message);
/// });
///
/// emitter.emit('someEvent', 'abc'); // logs 'abc'
/// </example>
abstract emit: eventType: string * [<ParamArray>] ``params``: obj option[] -> unit
/// <summary>Removes the given listener for event of specific type.</summary>
/// <param name="eventType">Name of the event to emit</param>
/// <param name="listener">
/// Function to invoke when the specified event is
/// emitted
/// </param>
/// <example>
/// emitter.removeListener('someEvent', function(message) {
/// console.log(message);
/// }); // removes the listener if already registered
/// </example>
abstract removeListener: eventType: string * listener: (ResizeArray<obj option> -> obj option) -> unit
type [<AllowNullLiteral>] EventEmitterStatic =
/// <param name="subscriber">
/// Optional subscriber instance
/// to use. If omitted, a new subscriber will be created for the emitter.
/// </param>
[<EmitConstructor>] abstract Create: ?subscriber: EventSubscriptionVendor -> EventEmitter
/// <summary>
/// NativeMethodsMixin provides methods to access the underlying native component directly.
/// This can be useful in cases when you want to focus a view or measure its on-screen dimensions,
/// for example.
/// The methods described here are available on most of the default components provided by React Native.
/// Note, however, that they are not available on composite components that aren't directly backed by a
/// native view. This will generally include most components that you define in your own app.
/// For more information, see <see href="http://facebook.github.io/react-native/docs/direct-manipulation.html">Direct Manipulation</see>.
/// </summary>
/// <seealso href="https://github.com/facebook/react-native/blob/master/Libraries/ReactIOS/NativeMethodsMixin.js" />
type [<AllowNullLiteral>] NativeMethodsMixinStatic =
/// <summary>
/// Determines the location on screen, width, and height of the given view and
/// returns the values via an async callback. If successful, the callback will
/// be called with the following arguments:
///
/// - x
/// - y
/// - width
/// - height
/// - pageX
/// - pageY
///
/// Note that these measurements are not available until after the rendering
/// has been completed in native. If you need the measurements as soon as
/// possible, consider using the [<c>onLayout</c>
/// prop](docs/view.html#onlayout) instead.
/// </summary>
abstract measure: callback: MeasureOnSuccessCallback -> unit
/// Determines the location of the given view in the window and returns the
/// values via an async callback. If the React root view is embedded in
/// another native view, this will give you the absolute coordinates. If
/// successful, the callback will be called with the following
/// arguments:
///
/// - x
/// - y
/// - width
/// - height
///
/// Note that these measurements are not available until after the rendering
/// has been completed in native.
abstract measureInWindow: callback: MeasureInWindowOnSuccessCallback -> unit
/// <summary>
/// Like <see cref="measure"><c>measure()</c></see>, but measures the view relative an ancestor,
/// specified as <c>relativeToNativeNode</c>. This means that the returned x, y
/// are relative to the origin x, y of the ancestor view.
///
/// As always, to obtain a native node handle for a component, you can use
/// <c>React.findNodeHandle(component)</c>.
/// </summary>
abstract measureLayout: relativeToNativeNode: float * onSuccess: MeasureLayoutOnSuccessCallback * onFail: (unit -> unit) -> unit
/// This function sends props straight to native. They will not participate in
/// future diff process - this means that if you do not include them in the
/// next render, they will remain active (see [Direct
/// Manipulation](docs/direct-manipulation.html)).
abstract setNativeProps: nativeProps: Object -> unit
/// Requests focus for the given input or view. The exact behavior triggered
/// will depend on the platform and type of view.
abstract focus: unit -> unit
/// <summary>Removes focus from an input or view. This is the opposite of <c>focus()</c>.</summary>
abstract blur: unit -> unit
abstract refs: NativeMethodsMixinStaticRefs with get, set
type [<AllowNullLiteral>] Runnable =
[<Emit("$0($1...)")>] abstract Invoke: appParameters: obj option -> unit
type [<AllowNullLiteral>] Task =
[<Emit("$0($1...)")>] abstract Invoke: taskData: obj option -> Promise<unit>
type [<AllowNullLiteral>] TaskProvider =
[<Emit("$0($1...)")>] abstract Invoke: unit -> Task
type NodeHandle =
float
type [<AllowNullLiteral>] NativeSyntheticEvent<'T> =
abstract bubbles: bool with get, set
abstract cancelable: bool with get, set
abstract currentTarget: NodeHandle 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 isPropagationStopped: unit -> bool
abstract isDefaultPrevented: unit -> bool
abstract persist: unit -> unit
abstract preventDefault: unit -> unit
abstract stopPropagation: unit -> unit
abstract target: NodeHandle with get, set
abstract timeStamp: float with get, set
abstract ``type``: string with get, set
type [<AllowNullLiteral>] NativeTouchEvent =
/// Array of all touch events that have changed since the last event
abstract changedTouches: ResizeArray<NativeTouchEvent> with get, set
/// The ID of the touch
abstract identifier: string with get, set
/// The X position of the touch, relative to the element
abstract locationX: float with get, set
/// The Y position of the touch, relative to the element
abstract locationY: float with get, set
/// The X position of the touch, relative to the screen
abstract pageX: float with get, set
/// The Y position of the touch, relative to the screen
abstract pageY: float with get, set
/// The node id of the element receiving the touch event
abstract target: string with get, set
/// A time identifier for the touch, useful for velocity calculation
abstract timestamp: float with get, set
/// Array of all current touches on the screen
abstract touches: ResizeArray<NativeTouchEvent> with get, set
type [<AllowNullLiteral>] GestureResponderEvent =
inherit NativeSyntheticEvent<NativeTouchEvent>
type [<AllowNullLiteral>] PointPropType =
abstract x: float with get, set
abstract y: float with get, set
type [<AllowNullLiteral>] 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
/// <summary>//FIXME: need to find documentation on which component is a TTouchable and can implement that interface</summary>
/// <seealso cref="React.DOMAtributes" />
type [<AllowNullLiteral>] 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
type [<AllowNullLiteral>] ComponentProvider =
[<Emit("$0($1...)")>] abstract Invoke: unit -> React.ComponentType<obj option>
type [<AllowNullLiteral>] AppConfig =
abstract appKey: string with get, set
abstract ``component``: ComponentProvider option with get, set
abstract run: Runnable option with get, set
/// <summary>
/// <c>AppRegistry</c> is the JS entry point to running all React Native apps. App
/// root components should register themselves with
/// <c>AppRegistry.registerComponent</c>, then the native system can load the bundle
/// for the app and then actually run the app when it's ready by invoking
/// <c>AppRegistry.runApplication</c>.
///
/// To "stop" an application when a view should be destroyed, call
/// <c>AppRegistry.unmountApplicationComponentAtRootTag</c> with the tag that was
/// pass into <c>runApplication</c>. These should always be used as a pair.
///
/// <c>AppRegistry</c> should be <c>require</c>d early in the <c>require</c> sequence to make
/// sure the JS execution environment is setup before other modules are
/// <c>require</c>d.
/// </summary>
module AppRegistry =
type [<AllowNullLiteral>] IExports =
abstract registerConfig: config: ResizeArray<AppConfig> -> unit
abstract registerComponent: appKey: string * getComponentFunc: ComponentProvider -> string
abstract registerRunnable: appKey: string * func: Runnable -> string
abstract getAppKeys: unit -> ResizeArray<string>
abstract unmountApplicationComponentAtRootTag: rootTag: float -> unit
abstract runApplication: appKey: string * appParameters: obj option -> unit
abstract registerHeadlessTask: appKey: string * task: TaskProvider -> unit
abstract getRunnable: appKey: string -> Runnable option
type [<AllowNullLiteral>] 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
type [<AllowNullLiteral>] LayoutAnimationProperties =
abstract opacity: string with get, set
abstract scaleXY: string with get, set
type [<AllowNullLiteral>] 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
type [<AllowNullLiteral>] 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
/// Automatically animates views to their new positions when the next layout happens.
/// A common way to use this API is to call LayoutAnimation.configureNext before
/// calling setState.
type [<AllowNullLiteral>] LayoutAnimationStatic =
/// <summary>Schedules an animation to happen on the next layout.</summary>
/// <param name="config">
/// Specifies animation properties:
/// <c>duration</c> in milliseconds
/// <c>create</c>, config for animating in new views (see Anim type)
/// <c>update</c>, config for animating views that have been updated (see Anim type)
/// </param>
/// <param name="onAnimationDidEnd">Called when the animation finished. Only supported on iOS.</param>
abstract configureNext: (LayoutAnimationConfig -> ((unit -> unit)) option -> unit) with get, set
/// Helper for creating a config for configureNext.
abstract create: (float -> (string) option -> (string) option -> LayoutAnimationConfig) with get, set
abstract Types: LayoutAnimationTypes with get, set
abstract Properties: LayoutAnimationProperties with get, set
abstract configChecker: (LayoutAnimationStaticConfigChecker -> obj option) with get, set
abstract Presets: {| easeInEaseOut: LayoutAnimationConfig; linear: LayoutAnimationConfig; spring: LayoutAnimationConfig |} with get, set
abstract easeInEaseOut: (((unit -> unit)) option -> unit) with get, set
abstract linear: (((unit -> unit)) option -> unit) with get, set
abstract spring: (((unit -> unit)) option -> unit) with get, set
type [<StringEnum>] [<RequireQualifiedAccess>] FlexAlignType =
| [<CompiledName("flex-start")>] FlexStart
| [<CompiledName("flex-end")>] FlexEnd
| Center
| Stretch
| Baseline
/// <summary>Flex Prop Types</summary>
/// <seealso href="https://facebook.github.io/react-native/docs/flexbox.html#proptypes" />
/// <seealso href="https://facebook.github.io/react-native/docs/layout-props.html" />
/// <seealso href="https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/LayoutPropTypes.js" />
type [<AllowNullLiteral>] FlexStyle =
abstract alignContent: FlexStyleAlignContent option with get, set
abstract alignItems: FlexAlignType option with get, set
abstract alignSelf: U2<FlexAlignType, string> option with get, set
abstract aspectRatio: float option with get, set
abstract borderBottomWidth: float option with get, set
abstract borderEndWidth: U2<float, string> option with get, set
abstract borderLeftWidth: float option with get, set
abstract borderRightWidth: float option with get, set
abstract borderStartWidth: U2<float, string> option with get, set
abstract borderTopWidth: float option with get, set
abstract borderWidth: float option with get, set
abstract bottom: U2<float, string> option with get, set
abstract display: FlexStyleDisplay option with get, set
abstract ``end``: U2<float, string> option with get, set
abstract flex: float option with get, set
abstract flexBasis: U2<float, string> option with get, set
abstract flexDirection: FlexStyleFlexDirection option with get, set
abstract flexGrow: float option with get, set
abstract flexShrink: float option with get, set
abstract flexWrap: FlexStyleFlexWrap option with get, set
abstract height: U2<float, string> option with get, set
abstract justifyContent: FlexStyleJustifyContent option with get, set
abstract left: U2<float, string> option with get, set
abstract margin: U2<float, string> option with get, set
abstract marginBottom: U2<float, string> option with get, set
abstract marginEnd: U2<float, string> option with get, set
abstract marginHorizontal: U2<float, string> option with get, set
abstract marginLeft: U2<float, string> option with get, set
abstract marginRight: U2<float, string> option with get, set
abstract marginStart: U2<float, string> option with get, set
abstract marginTop: U2<float, string> option with get, set
abstract marginVertical: U2<float, string> option with get, set
abstract maxHeight: U2<float, string> option with get, set
abstract maxWidth: U2<float, string> option with get, set
abstract minHeight: U2<float, string> option with get, set
abstract minWidth: U2<float, string> option with get, set
abstract overflow: FlexStyleOverflow option with get, set
abstract padding: U2<float, string> option with get, set
abstract paddingBottom: U2<float, string> option with get, set
abstract paddingEnd: U2<float, string> option with get, set
abstract paddingHorizontal: U2<float, string> option with get, set
abstract paddingLeft: U2<float, string> option with get, set
abstract paddingRight: U2<float, string> option with get, set
abstract paddingStart: U2<float, string> option with get, set
abstract paddingTop: U2<float, string> option with get, set
abstract paddingVertical: U2<float, string> option with get, set
abstract position: FlexStylePosition option with get, set
abstract right: U2<float, string> option with get, set
abstract start: U2<float, string> option with get, set
abstract top: U2<float, string> option with get, set
abstract width: U2<float, string> option with get, set
abstract zIndex: float option with get, set
abstract direction: FlexStyleDirection option with get, set
/// <seealso cref="ShadowPropTypesIOS.js" />
type [<AllowNullLiteral>] ShadowPropTypesIOSStatic =
/// <summary>Sets the drop shadow color</summary>
abstract shadowColor: string with get, set
/// <summary>Sets the drop shadow offset</summary>
abstract shadowOffset: {| width: float; height: float |} with get, set
/// <summary>Sets the drop shadow opacity (multiplied by the color's alpha component)</summary>
abstract shadowOpacity: float with get, set
/// <summary>Sets the drop shadow blur radius</summary>
abstract shadowRadius: float with get, set
type [<AllowNullLiteral>] GeoConfiguration =
abstract skipPermissionRequests: bool with get, set
type [<AllowNullLiteral>] GeoOptions =
abstract timeout: float option with get, set
abstract maximumAge: float option with get, set
abstract enableHighAccuracy: bool option with get, set
abstract distanceFilter: float option with get, set
abstract useSignificantChanges: bool option with get, set
type [<AllowNullLiteral>] GeolocationReturnType =
abstract coords: GeolocationReturnTypeCoords with get, set
abstract timestamp: float with get, set
type [<AllowNullLiteral>] GeolocationError =
abstract code: float with get, set
abstract message: string with get, set
abstract PERMISSION_DENIED: float with get, set
abstract POSITION_UNAVAILABLE: float with get, set
abstract TIMEOUT: float with get, set
type [<AllowNullLiteral>] PerpectiveTransform =
abstract perspective: float with get, set
type [<AllowNullLiteral>] RotateTransform =
abstract rotate: string with get, set
type [<AllowNullLiteral>] RotateXTransform =
abstract rotateX: string with get, set
type [<AllowNullLiteral>] RotateYTransform =
abstract rotateY: string with get, set
type [<AllowNullLiteral>] RotateZTransform =
abstract rotateZ: string with get, set
type [<AllowNullLiteral>] ScaleTransform =
abstract scale: float with get, set
type [<AllowNullLiteral>] ScaleXTransform =
abstract scaleX: float with get, set
type [<AllowNullLiteral>] ScaleYTransform =
abstract scaleY: float with get, set
type [<AllowNullLiteral>] TranslateXTransform =
abstract translateX: float with get, set
type [<AllowNullLiteral>] TranslateYTransform =
abstract translateY: float with get, set
type [<AllowNullLiteral>] SkewXTransform =