Skip to content

Commit f85351b

Browse files
committed
migrating progressBarAndroid docs from rebolt
1 parent 7e5d5c3 commit f85351b

1 file changed

Lines changed: 70 additions & 1 deletion

File tree

src/components/progressBarAndroid.rei

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,72 @@
1+
/**
2+
{b Android-only} component {{:https://facebook.github.io/react-native/docs/progressbarandroid}} used to indicate that the app is loading or there is some activity in the app.
3+
4+
{3 Example of use}
5+
{4 Horizontal}
6+
{[
7+
let component = ReasonReact.statelessComponent("ExampleHorizontal");
8+
9+
let make = _children => {
10+
...component,
11+
render: _children =>
12+
<View>
13+
<ProgressBarAndroid styleAttr=`Horizontal />
14+
<ProgressBarAndroid styleAttr=`Horizontal color="#2196F3" />
15+
<ProgressBarAndroid styleAttr=`Horizontal progress=0.5 />
16+
</View>,
17+
};
18+
]}
19+
{4 Inverse}
20+
{[
21+
let component = ReasonReact.statelessComponent("ExampleInverse");
22+
23+
let make = _children => {
24+
...component,
25+
render: _children =>
26+
<View>
27+
<ProgressBarAndroid styleAttr=`Inverse />
28+
<ProgressBarAndroid styleAttr=`Inverse color="#2196F3" />
29+
</View>,
30+
};
31+
]}
32+
{3 Props}
33+
{{:\BsReactNative/View-BsReactNative} [View] props}
34+
{4 color}
35+
{[
36+
~color: string=?,
37+
]}
38+
{4 animating}
39+
{[
40+
~animating: bool=?,
41+
]}
42+
{4 indeterminate}
43+
If the progress bar will show indeterminate progress. Note that this can only be false if [StyleAttr=`Horizontal]
44+
{[
45+
~indeterminate: bool=?,
46+
]}
47+
{4 progress}
48+
Value between 0 and 1
49+
{[
50+
~progress: float=?,
51+
]}
52+
{4 styleAttr}
53+
{[
54+
~styleAttr: [
55+
| `Horizontal
56+
| `Normal (default)
57+
| `Small
58+
| `Large
59+
| `Inverse
60+
| `SmallInverse
61+
| `LargeInverse
62+
]
63+
=?,
64+
]}
65+
{4 testID}
66+
{[
67+
~testID: string=?,
68+
]}
69+
*/
170
let make:
271
(
372
~animating: bool=?,
@@ -67,4 +136,4 @@ let make:
67136
ReasonReact.stateless,
68137
ReasonReact.noRetainedProps,
69138
ReasonReact.actionless,
70-
);
139+
);

0 commit comments

Comments
 (0)