Skip to content

Commit e5d0366

Browse files
sgnyMoOx
authored andcommitted
Zero-cost bindings for ProgressBarAndroid (#422)
1 parent d3a65e1 commit e5d0366

3 files changed

Lines changed: 198 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: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
id: components/ProgressBarAndroid
3+
title: ProgressBarAndroid
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+
~animating: bool=?,
16+
~color: Style.color=?,
17+
~indeterminate: bool=?,
18+
~progress: float=?,
19+
~styleAttr: [@bs.string] [
20+
| `Horizontal
21+
| `Normal
22+
| `Small
23+
| `Large
24+
| `Inverse
25+
| `SmallInverse
26+
| `LargeInverse
27+
]
28+
=?,
29+
// View props
30+
~accessibilityComponentType: [@bs.string] [
31+
| `none
32+
| `button
33+
| `radiobutton_checked
34+
| `radiobutton_unchecked
35+
]
36+
=?,
37+
~accessibilityElementsHidden: bool=?,
38+
~accessibilityHint: string=?,
39+
~accessibilityIgnoresInvertColors: bool=?,
40+
~accessibilityLabel: string=?,
41+
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
42+
~accessibilityRole: [@bs.string] [
43+
| `none
44+
| `button
45+
| `link
46+
| `search
47+
| `image
48+
| `keyboardkey
49+
| `text
50+
| `adjustable
51+
| `header
52+
| `summary
53+
| `imagebutton
54+
]
55+
=?,
56+
~accessibilityStates: array(AccessibilityState.t)=?,
57+
~accessibilityTraits: array(AccessibilityTrait.t)=?,
58+
~accessibilityViewIsModal: bool=?,
59+
~accessible: bool=?,
60+
~collapsable: bool=?,
61+
~hitSlop: Types.insets=?,
62+
~importantForAccessibility: [@bs.string] [
63+
| `auto
64+
| `yes
65+
| `no
66+
| [@bs.as "no-hide-descendants"]
67+
`noHideDescendants
68+
]
69+
=?,
70+
~nativeID: string=?,
71+
~needsOffscreenAlphaCompositing: bool=?,
72+
~onAccessibilityTap: unit => unit=?,
73+
~onLayout: Event.layoutEvent => unit=?,
74+
~onMagicTap: unit => unit=?,
75+
// Gesture Responder props
76+
~onMoveShouldSetResponder: Event.pressEvent => bool=?,
77+
~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?,
78+
~onResponderGrant: Event.pressEvent => unit=?,
79+
~onResponderMove: Event.pressEvent => unit=?,
80+
~onResponderReject: Event.pressEvent => unit=?,
81+
~onResponderRelease: Event.pressEvent => unit=?,
82+
~onResponderTerminate: Event.pressEvent => unit=?,
83+
~onResponderTerminationRequest: Event.pressEvent => unit=?,
84+
~onStartShouldSetResponder: Event.pressEvent => bool=?,
85+
~onStartShouldSetResponderCapture: Event.pressEvent => bool=?,
86+
~pointerEvents: [@bs.string] [
87+
| `auto
88+
| `none
89+
| [@bs.as "box-none"] `boxNone
90+
| [@bs.as "box-only"] `boxOnly
91+
]
92+
=?,
93+
~removeClippedSubviews: bool=?,
94+
~renderToHardwareTextureAndroid: bool=?,
95+
~shouldRasterizeIOS: bool=?,
96+
~style: Style.t=?,
97+
~testID: string=?,
98+
~children: React.element=?
99+
) =>
100+
React.element =
101+
"ProgressBarAndroid";
102+
103+
```
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
~animating: bool=?,
9+
~color: Style.color=?,
10+
~indeterminate: bool=?,
11+
~progress: float=?,
12+
~styleAttr: [@bs.string] [
13+
| `Horizontal
14+
| `Normal
15+
| `Small
16+
| `Large
17+
| `Inverse
18+
| `SmallInverse
19+
| `LargeInverse
20+
]
21+
=?,
22+
// View props
23+
~accessibilityComponentType: [@bs.string] [
24+
| `none
25+
| `button
26+
| `radiobutton_checked
27+
| `radiobutton_unchecked
28+
]
29+
=?,
30+
~accessibilityElementsHidden: bool=?,
31+
~accessibilityHint: string=?,
32+
~accessibilityIgnoresInvertColors: bool=?,
33+
~accessibilityLabel: string=?,
34+
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
35+
~accessibilityRole: [@bs.string] [
36+
| `none
37+
| `button
38+
| `link
39+
| `search
40+
| `image
41+
| `keyboardkey
42+
| `text
43+
| `adjustable
44+
| `header
45+
| `summary
46+
| `imagebutton
47+
]
48+
=?,
49+
~accessibilityStates: array(AccessibilityState.t)=?,
50+
~accessibilityTraits: array(AccessibilityTrait.t)=?,
51+
~accessibilityViewIsModal: bool=?,
52+
~accessible: bool=?,
53+
~collapsable: bool=?,
54+
~hitSlop: Types.insets=?,
55+
~importantForAccessibility: [@bs.string] [
56+
| `auto
57+
| `yes
58+
| `no
59+
| [@bs.as "no-hide-descendants"]
60+
`noHideDescendants
61+
]
62+
=?,
63+
~nativeID: string=?,
64+
~needsOffscreenAlphaCompositing: bool=?,
65+
~onAccessibilityTap: unit => unit=?,
66+
~onLayout: Event.layoutEvent => unit=?,
67+
~onMagicTap: unit => unit=?,
68+
// Gesture Responder props
69+
~onMoveShouldSetResponder: Event.pressEvent => bool=?,
70+
~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?,
71+
~onResponderGrant: Event.pressEvent => unit=?,
72+
~onResponderMove: Event.pressEvent => unit=?,
73+
~onResponderReject: Event.pressEvent => unit=?,
74+
~onResponderRelease: Event.pressEvent => unit=?,
75+
~onResponderTerminate: Event.pressEvent => unit=?,
76+
~onResponderTerminationRequest: Event.pressEvent => unit=?,
77+
~onStartShouldSetResponder: Event.pressEvent => bool=?,
78+
~onStartShouldSetResponderCapture: Event.pressEvent => bool=?,
79+
~pointerEvents: [@bs.string] [
80+
| `auto
81+
| `none
82+
| [@bs.as "box-none"] `boxNone
83+
| [@bs.as "box-only"] `boxOnly
84+
]
85+
=?,
86+
~removeClippedSubviews: bool=?,
87+
~renderToHardwareTextureAndroid: bool=?,
88+
~shouldRasterizeIOS: bool=?,
89+
~style: Style.t=?,
90+
~testID: string=?,
91+
~children: React.element=?
92+
) =>
93+
React.element =
94+
"ProgressBarAndroid";

0 commit comments

Comments
 (0)