Skip to content

Commit e866c02

Browse files
authored
Use Style.t for ImageBackground.imageStyle (facebook#534)
Closes facebook#533
1 parent 768b19f commit e866c02

File tree

2 files changed

+2
-64
lines changed

2 files changed

+2
-64
lines changed

reason-react-native/src/components/ImageBackground.md

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,13 @@ wip: true
77
```reason
88
include NativeElement;
99
10-
type imageStyle;
11-
12-
[@bs.obj]
13-
external imageStyle:
14-
(
15-
~backfaceVisibility: [@bs.string] [ | `visible | `hidden]=?,
16-
~backgroundColor: Color.t=?,
17-
~borderColor: Color.t=?,
18-
~borderRadius: float=?,
19-
~borderBottomLeftRadius: float=?,
20-
~borderBottomRightRadius: float=?,
21-
~borderTopLeftRadius: float=?,
22-
~borderTopRightRadius: float=?,
23-
~borderWidth: float=?,
24-
~opacity: float=?,
25-
~overflow: [@bs.string] [ | `visible | `hidden]=?,
26-
~resizeMode: [@bs.string] [
27-
| `cover
28-
| `contain
29-
| `stretch
30-
| `repeat
31-
| `center
32-
]
33-
=?,
34-
~overlayColor: Color.t=?,
35-
~tintColor: Color.t=?,
36-
unit
37-
) =>
38-
imageStyle =
39-
"";
40-
4110
[@react.component] [@bs.module "react-native"]
4211
external make:
4312
(
4413
~ref: ref=?,
4514
// ImageBackground props
4615
~imageRef: Image.ref=?,
47-
~imageStyle: imageStyle=?,
16+
~imageStyle: Style.t=?,
4817
// Image props
4918
~accessibilityLabel: string=?,
5019
~accessible: bool=?,

reason-react-native/src/components/ImageBackground.re

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,12 @@
11
include NativeElement;
22

3-
type imageStyle;
4-
5-
[@bs.obj]
6-
external imageStyle:
7-
(
8-
~backfaceVisibility: [@bs.string] [ | `visible | `hidden]=?,
9-
~backgroundColor: Color.t=?,
10-
~borderColor: Color.t=?,
11-
~borderRadius: float=?,
12-
~borderBottomLeftRadius: float=?,
13-
~borderBottomRightRadius: float=?,
14-
~borderTopLeftRadius: float=?,
15-
~borderTopRightRadius: float=?,
16-
~borderWidth: float=?,
17-
~opacity: float=?,
18-
~overflow: [@bs.string] [ | `visible | `hidden]=?,
19-
~resizeMode: [@bs.string] [
20-
| `cover
21-
| `contain
22-
| `stretch
23-
| `repeat
24-
| `center
25-
]
26-
=?,
27-
~overlayColor: Color.t=?,
28-
~tintColor: Color.t=?,
29-
unit
30-
) =>
31-
imageStyle =
32-
"";
33-
343
[@react.component] [@bs.module "react-native"]
354
external make:
365
(
376
~ref: ref=?,
387
// ImageBackground props
398
~imageRef: Image.ref=?,
40-
~imageStyle: imageStyle=?,
9+
~imageStyle: Style.t=?,
4110
// Image props
4211
~accessibilityLabel: string=?,
4312
~accessible: bool=?,

0 commit comments

Comments
 (0)