1
- include ReactNative . NativeElement ;
2
1
open ReactNative ;
2
+ include NativeElement ;
3
+
3
4
// For localeId refer to
4
5
// https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
5
6
type locale = string ;
7
+
6
8
module PickerEvent = {
7
9
type payload = {
8
10
target: option (int ),
9
11
timestamp: int ,
10
12
};
11
-
12
13
include Event . SyntheticEvent ({
13
14
type _payload = payload;
14
15
});
15
16
};
16
- type pickerEvent = PickerEvent . t ;
17
17
18
18
[@ react . component ] [@ bs . module "@react-native-community/datetimepicker" ]
19
19
external make :
@@ -22,7 +22,7 @@ external make:
22
22
// DateTimePicker props
23
23
~mode : [@ bs . string ] [ | ` date | ` time | ` datetime | ` countdown ] =?,
24
24
~display : [@ bs . string ] [ | ` default | ` spinner | ` calendar | ` clock ] =?,
25
- ~onChange : (pickerEvent , Js . Date . t ) => unit =?,
25
+ ~onChange : (PickerEvent . t , Js . Date . t ) => unit =?,
26
26
~value : Js . Date . t ,
27
27
~maximumDate : Js . Date . t =?,
28
28
~minimumDate : Js . Date . t =?,
@@ -43,7 +43,7 @@ external make:
43
43
| [@ bs . as "30" ] `_30
44
44
]
45
45
=?,
46
- // View props
46
+ // View props 0.62.0
47
47
~accessibilityComponentType : [@ bs . string ] [
48
48
| ` none
49
49
| ` button
@@ -68,14 +68,25 @@ external make:
68
68
| ` header
69
69
| ` summary
70
70
| ` imagebutton
71
+ | ` article
72
+ | ` banner
73
+ | ` complementary
74
+ | ` contentinfo
75
+ | ` form
76
+ | ` list
77
+ | ` listitem
78
+ | ` main
79
+ | ` navigation
80
+ | ` region
71
81
]
72
82
=?,
73
- ~accessibilityStates : array (ReactNative . Accessibility . state )=?,
74
- ~accessibilityTraits : array (ReactNative . AccessibilityTrait . t )=?,
83
+ ~accessibilityState : Accessibility . state =?,
84
+ ~accessibilityTraits : array (AccessibilityTrait . t )=?,
85
+ ~accessibilityValue : Accessibility . value =?,
75
86
~accessibilityViewIsModal : bool =?,
76
87
~accessible : bool =?,
77
88
~collapsable : bool =?,
78
- ~hitSlop : ReactNative . View . edgeInsets =?,
89
+ ~hitSlop : View . edgeInsets =?,
79
90
~importantForAccessibility : [@ bs . string ] [
80
91
| ` auto
81
92
| ` yes
@@ -88,21 +99,21 @@ external make:
88
99
~needsOffscreenAlphaCompositing : bool =?,
89
100
~onAccessibilityEscape : unit => unit =?,
90
101
~onAccessibilityTap : unit => unit =?,
91
- ~onLayout : ReactNative . Event . layoutEvent => unit =?,
102
+ ~onLayout : Event . layoutEvent => unit =?,
92
103
~onMagicTap : unit => unit =?,
93
104
// Gesture Responder props
94
- ~onMoveShouldSetResponder : ReactNative . Event . pressEvent => bool =?,
95
- ~onMoveShouldSetResponderCapture : ReactNative . Event . pressEvent => bool =?,
96
- ~onResponderEnd : ReactNative . Event . pressEvent => unit =?,
97
- ~onResponderGrant : ReactNative . Event . pressEvent => unit =?,
98
- ~onResponderMove : ReactNative . Event . pressEvent => unit =?,
99
- ~onResponderReject : ReactNative . Event . pressEvent => unit =?,
100
- ~onResponderRelease : ReactNative . Event . pressEvent => unit =?,
101
- ~onResponderStart : ReactNative . Event . pressEvent => unit =?,
102
- ~onResponderTerminate : ReactNative . Event . pressEvent => unit =?,
103
- ~onResponderTerminationRequest : ReactNative . Event . pressEvent => bool =?,
104
- ~onStartShouldSetResponder : ReactNative . Event . pressEvent => bool =?,
105
- ~onStartShouldSetResponderCapture : ReactNative . Event . pressEvent => bool =?,
105
+ ~onMoveShouldSetResponder : Event . pressEvent => bool =?,
106
+ ~onMoveShouldSetResponderCapture : Event . pressEvent => bool =?,
107
+ ~onResponderEnd : Event . pressEvent => unit =?,
108
+ ~onResponderGrant : Event . pressEvent => unit =?,
109
+ ~onResponderMove : Event . pressEvent => unit =?,
110
+ ~onResponderReject : Event . pressEvent => unit =?,
111
+ ~onResponderRelease : Event . pressEvent => unit =?,
112
+ ~onResponderStart : Event . pressEvent => unit =?,
113
+ ~onResponderTerminate : Event . pressEvent => unit =?,
114
+ ~onResponderTerminationRequest : Event . pressEvent => bool =?,
115
+ ~onStartShouldSetResponder : Event . pressEvent => bool =?,
116
+ ~onStartShouldSetResponderCapture : Event . pressEvent => bool =?,
106
117
~pointerEvents : [@ bs . string ] [
107
118
| ` auto
108
119
| ` none
@@ -113,8 +124,17 @@ external make:
113
124
~removeClippedSubviews : bool =?,
114
125
~renderToHardwareTextureAndroid : bool =?,
115
126
~shouldRasterizeIOS : bool =?,
116
- ~style : ReactNative . Style . t =?,
117
- ~testID : string =?
127
+ ~style : Style . t =?,
128
+ ~testID : string =?,
129
+ ~children : React . element =?,
130
+ // React Native Web Props
131
+ ~onMouseDown : ReactEvent . Mouse . t => unit =?,
132
+ ~onMouseEnter : ReactEvent . Mouse . t => unit =?,
133
+ ~onMouseLeave : ReactEvent . Mouse . t => unit =?,
134
+ ~onMouseMove : ReactEvent . Mouse . t => unit =?,
135
+ ~onMouseOver : ReactEvent . Mouse . t => unit =?,
136
+ ~onMouseOut : ReactEvent . Mouse . t => unit =?,
137
+ ~onMouseUp : ReactEvent . Mouse . t => unit =?
118
138
) =>
119
139
React . element =
120
140
"default" ;
0 commit comments