Skip to content

Commit 02c9f69

Browse files
authored
Zero-cost bindings to ProgressViewIOS (#421)
1 parent fd8396e commit 02c9f69

3 files changed

Lines changed: 182 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
id: components/ProgressViewIOS
3+
title: ProgressViewIOS
4+
wip: true
5+
---
6+
7+
```reason
8+
type element;
9+
type ref = React.Ref.t(Js.nullable(element));
10+
11+
[@react.component] [@bs.module "react-native"]
12+
external make:
13+
(
14+
~ref: ref=?,
15+
~progress: float,
16+
~progressImage: Image.Source.t=?,
17+
~progressTintColor: Style.color=?,
18+
~progressViewStyle: [@bs.string] [ | `default | `bar]=?,
19+
~trackImage: Image.Source.t=?,
20+
~trackTintColor: Style.color=?,
21+
// View props
22+
~accessibilityComponentType: [@bs.string] [
23+
| `none
24+
| `button
25+
| `radiobutton_checked
26+
| `radiobutton_unchecked
27+
]
28+
=?,
29+
~accessibilityElementsHidden: bool=?,
30+
~accessibilityHint: string=?,
31+
~accessibilityIgnoresInvertColors: bool=?,
32+
~accessibilityLabel: string=?,
33+
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
34+
~accessibilityRole: [@bs.string] [
35+
| `none
36+
| `button
37+
| `link
38+
| `search
39+
| `image
40+
| `keyboardkey
41+
| `text
42+
| `adjustable
43+
| `header
44+
| `summary
45+
| `imagebutton
46+
]
47+
=?,
48+
~accessibilityStates: array(AccessibilityState.t)=?,
49+
~accessibilityTraits: array(AccessibilityTrait.t)=?,
50+
~accessibilityViewIsModal: bool=?,
51+
~accessible: bool=?,
52+
~collapsable: bool=?,
53+
~hitSlop: Types.insets=?,
54+
~importantForAccessibility: [@bs.string] [
55+
| `auto
56+
| `yes
57+
| `no
58+
| [@bs.as "no-hide-descendants"]
59+
`noHideDescendants
60+
]
61+
=?,
62+
~nativeID: string=?,
63+
~needsOffscreenAlphaCompositing: bool=?,
64+
~onAccessibilityTap: unit => unit=?,
65+
~onLayout: Event.layoutEvent => unit=?,
66+
~onMagicTap: unit => unit=?,
67+
// Gesture Responder props
68+
~onMoveShouldSetResponder: Event.pressEvent => bool=?,
69+
~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?,
70+
~onResponderGrant: Event.pressEvent => unit=?,
71+
~onResponderMove: Event.pressEvent => unit=?,
72+
~onResponderReject: Event.pressEvent => unit=?,
73+
~onResponderRelease: Event.pressEvent => unit=?,
74+
~onResponderTerminate: Event.pressEvent => unit=?,
75+
~onResponderTerminationRequest: Event.pressEvent => unit=?,
76+
~onStartShouldSetResponder: Event.pressEvent => bool=?,
77+
~onStartShouldSetResponderCapture: Event.pressEvent => bool=?,
78+
~pointerEvents: [@bs.string] [
79+
| `auto
80+
| `none
81+
| [@bs.as "box-none"] `boxNone
82+
| [@bs.as "box-only"] `boxOnly
83+
]
84+
=?,
85+
~removeClippedSubviews: bool=?,
86+
~renderToHardwareTextureAndroid: bool=?,
87+
~shouldRasterizeIOS: bool=?,
88+
~style: Style.t=?,
89+
~testID: string=?,
90+
~children: React.element=?
91+
) =>
92+
React.element =
93+
"ProgressViewIOS";
94+
95+
```
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
type element;
2+
type ref = React.Ref.t(Js.nullable(element));
3+
4+
[@react.component] [@bs.module "react-native"]
5+
external make:
6+
(
7+
~ref: ref=?,
8+
~progress: float,
9+
~progressImage: Image.Source.t=?,
10+
~progressTintColor: Style.color=?,
11+
~progressViewStyle: [@bs.string] [ | `default | `bar]=?,
12+
~trackImage: Image.Source.t=?,
13+
~trackTintColor: Style.color=?,
14+
// View props
15+
~accessibilityComponentType: [@bs.string] [
16+
| `none
17+
| `button
18+
| `radiobutton_checked
19+
| `radiobutton_unchecked
20+
]
21+
=?,
22+
~accessibilityElementsHidden: bool=?,
23+
~accessibilityHint: string=?,
24+
~accessibilityIgnoresInvertColors: bool=?,
25+
~accessibilityLabel: string=?,
26+
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
27+
~accessibilityRole: [@bs.string] [
28+
| `none
29+
| `button
30+
| `link
31+
| `search
32+
| `image
33+
| `keyboardkey
34+
| `text
35+
| `adjustable
36+
| `header
37+
| `summary
38+
| `imagebutton
39+
]
40+
=?,
41+
~accessibilityStates: array(AccessibilityState.t)=?,
42+
~accessibilityTraits: array(AccessibilityTrait.t)=?,
43+
~accessibilityViewIsModal: bool=?,
44+
~accessible: bool=?,
45+
~collapsable: bool=?,
46+
~hitSlop: Types.insets=?,
47+
~importantForAccessibility: [@bs.string] [
48+
| `auto
49+
| `yes
50+
| `no
51+
| [@bs.as "no-hide-descendants"]
52+
`noHideDescendants
53+
]
54+
=?,
55+
~nativeID: string=?,
56+
~needsOffscreenAlphaCompositing: bool=?,
57+
~onAccessibilityTap: unit => unit=?,
58+
~onLayout: Event.layoutEvent => unit=?,
59+
~onMagicTap: unit => unit=?,
60+
// Gesture Responder props
61+
~onMoveShouldSetResponder: Event.pressEvent => bool=?,
62+
~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?,
63+
~onResponderGrant: Event.pressEvent => unit=?,
64+
~onResponderMove: Event.pressEvent => unit=?,
65+
~onResponderReject: Event.pressEvent => unit=?,
66+
~onResponderRelease: Event.pressEvent => unit=?,
67+
~onResponderTerminate: Event.pressEvent => unit=?,
68+
~onResponderTerminationRequest: Event.pressEvent => unit=?,
69+
~onStartShouldSetResponder: Event.pressEvent => bool=?,
70+
~onStartShouldSetResponderCapture: Event.pressEvent => bool=?,
71+
~pointerEvents: [@bs.string] [
72+
| `auto
73+
| `none
74+
| [@bs.as "box-none"] `boxNone
75+
| [@bs.as "box-only"] `boxOnly
76+
]
77+
=?,
78+
~removeClippedSubviews: bool=?,
79+
~renderToHardwareTextureAndroid: bool=?,
80+
~shouldRasterizeIOS: bool=?,
81+
~style: Style.t=?,
82+
~testID: string=?,
83+
~children: React.element=?
84+
) =>
85+
React.element =
86+
"ProgressViewIOS";

0 commit comments

Comments
 (0)