1- include ReactNative . NativeElement ;
21open ReactNative ;
2+ include NativeElement ;
3+
34// For localeId refer to
45// https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
56type locale = string ;
7+
68module PickerEvent = {
79 type payload = {
810 target: option (int ),
911 timestamp: int ,
1012 };
11-
1213 include Event . SyntheticEvent ({
1314 type _payload = payload;
1415 });
1516};
16- type pickerEvent = PickerEvent . t ;
1717
1818[@ react . component ] [@ bs . module "@react-native-community/datetimepicker" ]
1919external make :
@@ -22,7 +22,7 @@ external make:
2222 // DateTimePicker props
2323 ~mode : [@ bs . string ] [ | ` date | ` time | ` datetime | ` countdown ] =?,
2424 ~display : [@ bs . string ] [ | ` default | ` spinner | ` calendar | ` clock ] =?,
25- ~onChange : (pickerEvent , Js . Date . t ) => unit =?,
25+ ~onChange : (PickerEvent . t , Js . Date . t ) => unit =?,
2626 ~value : Js . Date . t ,
2727 ~maximumDate : Js . Date . t =?,
2828 ~minimumDate : Js . Date . t =?,
@@ -43,7 +43,7 @@ external make:
4343 | [@ bs . as "30" ] `_30
4444 ]
4545 =?,
46- // View props
46+ // View props 0.62.0
4747 ~accessibilityComponentType : [@ bs . string ] [
4848 | ` none
4949 | ` button
@@ -68,14 +68,25 @@ external make:
6868 | ` header
6969 | ` summary
7070 | ` imagebutton
71+ | ` article
72+ | ` banner
73+ | ` complementary
74+ | ` contentinfo
75+ | ` form
76+ | ` list
77+ | ` listitem
78+ | ` main
79+ | ` navigation
80+ | ` region
7181 ]
7282 =?,
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 =?,
7586 ~accessibilityViewIsModal : bool =?,
7687 ~accessible : bool =?,
7788 ~collapsable : bool =?,
78- ~hitSlop : ReactNative . View . edgeInsets =?,
89+ ~hitSlop : View . edgeInsets =?,
7990 ~importantForAccessibility : [@ bs . string ] [
8091 | ` auto
8192 | ` yes
@@ -88,21 +99,21 @@ external make:
8899 ~needsOffscreenAlphaCompositing : bool =?,
89100 ~onAccessibilityEscape : unit => unit =?,
90101 ~onAccessibilityTap : unit => unit =?,
91- ~onLayout : ReactNative . Event . layoutEvent => unit =?,
102+ ~onLayout : Event . layoutEvent => unit =?,
92103 ~onMagicTap : unit => unit =?,
93104 // 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 =?,
106117 ~pointerEvents : [@ bs . string ] [
107118 | ` auto
108119 | ` none
@@ -113,8 +124,17 @@ external make:
113124 ~removeClippedSubviews : bool =?,
114125 ~renderToHardwareTextureAndroid : bool =?,
115126 ~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 =?
118138 ) =>
119139 React . element =
120140 "default" ;
0 commit comments