We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f0c4aa + 1c65ce4 commit 371989fCopy full SHA for 371989f
src/styleRe.re
@@ -1,5 +1,7 @@
1
type t;
2
3
+external flatten : array t => t = "%identity";
4
+
5
external to_style : Js.Dict.t Js.Json.t => t = "%identity";
6
7
external style_to_dict : t => Js.Dict.t Js.Json.t = "%identity";
src/styleRe.rei
@@ -1,5 +1,14 @@
+/** Generates a style out of an array of styles.
+ * This is equivalent:
+ * // js
+ * <View style={[styleA, styleB]} />
+ * // reason
8
+ * <View style=(Style.flatten [|styleA, styleB|]) />
9
+*/
10
+let flatten: array t => t;
11
12
type style;
13
14
let style: list style => t;
@@ -9,8 +18,6 @@ let combine: t => t => t;
18
let concat: list t => t;
19
20
-/** Equivalent to [style_a, style_b] in js */
-
21
/**
15
22
* Layout Props
16
23
*/
0 commit comments