Skip to content

Commit 374836c

Browse files
cknittMoOx
authored andcommitted
Merge https://github.com/cca-io/cca-bs-react-native to bs-react-native-next. (#346)
1 parent cc3e6d2 commit 374836c

63 files changed

Lines changed: 3093 additions & 7 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bs-react-native-next/src/Test.bs.js renamed to bs-react-native-next/src/ActivityIndicator.bs.js

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
type size;
2+
3+
let small: size = "small"->Obj.magic;
4+
let large: size = "large"->Obj.magic;
5+
external exactSize: float => size = "%identity";
6+
7+
[@react.component] [@bs.module "react-native"]
8+
external make:
9+
(
10+
~animating: bool=?,
11+
~color: Style.color=?,
12+
~size: size=?,
13+
~hidesWhenStopped: bool=?,
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(Types.AccessibilityState.t)=?,
42+
~accessibilityTraits: array(Types.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.NativeLayoutEvent.t => unit=?,
59+
~onMagicTap: unit => unit=?,
60+
~onMoveShouldSetResponder: Event.NativeEvent.t => bool=?,
61+
~onMoveShouldSetResponderCapture: Event.NativeEvent.t => bool=?,
62+
~onResponderGrant: Event.NativeEvent.t => unit=?,
63+
~onResponderMove: Event.NativeEvent.t => unit=?,
64+
~onResponderReject: Event.NativeEvent.t => unit=?,
65+
~onResponderRelease: Event.NativeEvent.t => unit=?,
66+
~onResponderTerminate: Event.NativeEvent.t => unit=?,
67+
~onResponderTerminationRequest: Event.NativeEvent.t => unit=?,
68+
~onStartShouldSetResponder: Event.NativeEvent.t => bool=?,
69+
~onStartShouldSetResponderCapture: Event.NativeEvent.t => bool=?,
70+
~pointerEvents: [@bs.string] [
71+
| `auto
72+
| `none
73+
| [@bs.as "box-none"] `boxNone
74+
| [@bs.as "box-only"] `boxOnly
75+
]
76+
=?,
77+
~removeClippedSubviews: bool=?,
78+
~renderToHardwareTextureAndroid: bool=?,
79+
~shouldRasterizeIOS: bool=?,
80+
~style: Style.t=?,
81+
~testID: string=?
82+
) =>
83+
React.element =
84+
"ActivityIndicator";

‎bs-react-native-next/src/Alert.bs.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎bs-react-native-next/src/Alert.re‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
type options;
2+
3+
[@bs.obj]
4+
external options:
5+
(~cancelable: bool=?, ~onDismiss: unit => unit=?, unit) => options =
6+
"";
7+
8+
type button;
9+
10+
[@bs.obj]
11+
external button:
12+
(
13+
~text: string=?,
14+
~onPress: unit => unit=?,
15+
~style: [@bs.string] [ | `default | `cancel | `destructive]=?,
16+
unit
17+
) =>
18+
button =
19+
"";
20+
21+
[@bs.scope "Alert"] [@bs.module "react-native"]
22+
external alert:
23+
(
24+
~title: string,
25+
~message: string=?,
26+
~buttons: array(button)=?,
27+
~options: options=?,
28+
~type_: [@bs.string] [
29+
| `default
30+
| `plainText
31+
| `secureText
32+
| `loginPassword
33+
]
34+
=?,
35+
unit
36+
) =>
37+
unit =
38+
"alert";

0 commit comments

Comments
 (0)