Skip to content

Commit 10cb4f1

Browse files
committed
ImageBackground: rename t as imageStyle
Ref reasonml-community/bs-react-native@e3a3a06#r33172168
1 parent 4bb5166 commit 10cb4f1

2 files changed

Lines changed: 30 additions & 16 deletions

File tree

‎bs-react-native-next/src/components/ImageBackground.md‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ wip: true
88
type element;
99
type ref = React.Ref.t(Js.nullable(element));
1010
11-
type t;
11+
type imageStyle;
1212
1313
[@bs.obj]
14-
external style:
14+
external imageStyle:
1515
(
16-
~backfaceVisibility: [@bs.string] [ | `visible | `hidden ]=?,
16+
~backfaceVisibility: [@bs.string] [ | `visible | `hidden]=?,
1717
~backgroundColor: Style.color=?,
1818
~borderColor: Style.color=?,
1919
~borderRadius: float=?,
@@ -23,13 +23,20 @@ external style:
2323
~borderTopRightRadius: float=?,
2424
~borderWidth: float=?,
2525
~opacity: float=?,
26-
~overflow: [@bs.string] [ | `visible | `hidden ]=?,
27-
~resizeMode: [@bs.string] [ | `cover | `contain | `stretch | `repeat | `center ]=?,
26+
~overflow: [@bs.string] [ | `visible | `hidden]=?,
27+
~resizeMode: [@bs.string] [
28+
| `cover
29+
| `contain
30+
| `stretch
31+
| `repeat
32+
| `center
33+
]
34+
=?,
2835
~overlayColor: Style.color=?,
2936
~tintColor: Style.color=?,
3037
unit
3138
) =>
32-
t =
39+
imageStyle =
3340
"";
3441
3542
[@react.component] [@bs.module "react-native"]
@@ -50,7 +57,7 @@ external make:
5057
=?,
5158
~source: Image.Source.t,
5259
~style: Style.t=?,
53-
~imageStyle: t=?,
60+
~imageStyle: imageStyle=?,
5461
~testID: string=?,
5562
~resizeMethod: [@bs.string] [ | `auto | `resize | `scale]=?,
5663
~accessibilityLabel: string=?,

‎bs-react-native-next/src/components/ImageBackground.re‎

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
type element;
22
type ref = React.Ref.t(Js.nullable(element));
33

4-
type t;
4+
type imageStyle;
55

66
[@bs.obj]
7-
external style:
7+
external imageStyle:
88
(
9-
~backfaceVisibility: [@bs.string] [ | `visible | `hidden ]=?,
9+
~backfaceVisibility: [@bs.string] [ | `visible | `hidden]=?,
1010
~backgroundColor: Style.color=?,
1111
~borderColor: Style.color=?,
12-
~borderRadius: float=?,
12+
~borderRadius: float=?,
1313
~borderBottomLeftRadius: float=?,
1414
~borderBottomRightRadius: float=?,
1515
~borderTopLeftRadius: float=?,
1616
~borderTopRightRadius: float=?,
1717
~borderWidth: float=?,
1818
~opacity: float=?,
19-
~overflow: [@bs.string] [ | `visible | `hidden ]=?,
20-
~resizeMode: [@bs.string] [ | `cover | `contain | `stretch | `repeat | `center ]=?,
19+
~overflow: [@bs.string] [ | `visible | `hidden]=?,
20+
~resizeMode: [@bs.string] [
21+
| `cover
22+
| `contain
23+
| `stretch
24+
| `repeat
25+
| `center
26+
]
27+
=?,
2128
~overlayColor: Style.color=?,
2229
~tintColor: Style.color=?,
2330
unit
2431
) =>
25-
t =
32+
imageStyle =
2633
"";
2734

2835
[@react.component] [@bs.module "react-native"]
@@ -43,7 +50,7 @@ external make:
4350
=?,
4451
~source: Image.Source.t,
4552
~style: Style.t=?,
46-
~imageStyle: t=?,
53+
~imageStyle: imageStyle=?,
4754
~testID: string=?,
4855
~resizeMethod: [@bs.string] [ | `auto | `resize | `scale]=?,
4956
~accessibilityLabel: string=?,
@@ -58,4 +65,4 @@ external make:
5865
~children: React.element=?
5966
) =>
6067
React.element =
61-
"ImageBackground";
68+
"ImageBackground";

0 commit comments

Comments
 (0)