Skip to content

Commit 5d0e62b

Browse files
sgnyMoOx
authored andcommitted
Zero-cost bindings to MaskedViewIOS (#447)
1 parent 0819adb commit 5d0e62b

3 files changed

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

0 commit comments

Comments
 (0)