Skip to content

Commit 84ccdf3

Browse files
sgnyMoOx
authored andcommitted
Zero-cost bindings to SnapshotViewIOS (#424)
1 parent d4b0e46 commit 84ccdf3

3 files changed

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

0 commit comments

Comments
 (0)