Skip to content

Commit ba1c41d

Browse files
update to bs-platform@8.2.0 reason-react@0.9.0
1 parent 11ec6f5 commit ba1c41d

25 files changed

Lines changed: 107 additions & 163 deletions

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reason-react-native/paper",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"publishConfig": {
55
"access": "public"
66
},
@@ -37,13 +37,13 @@
3737
"test": "yarn re:clean-build"
3838
},
3939
"devDependencies": {
40-
"bs-platform": "^5.2.0",
40+
"bs-platform": "8.2.0",
4141
"husky": "^1.3.0",
4242
"lint-staged": "^10.1.1",
4343
"prettier": "^1.18.0",
4444
"react-native-paper": "^3.0.0",
45-
"reason-react": "^0.7.0",
46-
"reason-react-native": "^0.60.0"
45+
"reason-react": "0.9.0",
46+
"reason-react-native": "0.62.3"
4747
},
4848
"prettier": {
4949
"trailingComma": "all",

src/Paper.bs.js

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
'use strict';
22

33

4-
var ActivityIndicator = 0;
4+
var ActivityIndicator;
55

6-
var Appbar = 0;
6+
var Appbar;
77

8-
var Avatar = 0;
8+
var Avatar;
99

10-
var Banner = 0;
10+
var Banner;
1111

12-
var BottomNavigation = 0;
12+
var BottomNavigation;
1313

14-
var Button = 0;
14+
var Button;
1515

16-
var Caption = 0;
16+
var Caption;
1717

18-
var Badge = 0;
18+
var Badge;
1919

20-
var Card = 0;
20+
var Card;
2121

22-
var Checkbox = 0;
22+
var Checkbox;
2323

24-
var Chip = 0;
24+
var Chip;
2525

26-
var Dialog = 0;
26+
var Dialog;
2727

28-
var Divider = 0;
28+
var Divider;
2929

30-
var Drawer = 0;
30+
var Drawer;
3131

32-
var FAB = 0;
32+
var FAB;
3333

34-
var Headline = 0;
34+
var Headline;
3535

36-
var IconButton = 0;
36+
var IconButton;
3737

38-
var Modal = 0;
38+
var Modal;
3939

40-
var Surface = 0;
40+
var Surface;
4141

42-
var PaperProvider = 0;
42+
var PaperProvider;
4343

44-
var Paragraph = 0;
44+
var Paragraph;
4545

46-
var Portal = 0;
46+
var Portal;
4747

48-
var ProgressBar = 0;
48+
var ProgressBar;
4949

50-
var RadioButton = 0;
50+
var RadioButton;
5151

52-
var Subheading = 0;
52+
var Subheading;
5353

54-
var Switch = 0;
54+
var Switch;
5555

56-
var Snackbar = 0;
56+
var Snackbar;
5757

58-
var $$Text = 0;
58+
var $$Text;
5959

60-
var TextInput = 0;
60+
var TextInput;
6161

62-
var ThemeProvider = 0;
62+
var ThemeProvider;
6363

64-
var Title = 0;
64+
var Title;
6565

66-
var TouchableRipple = 0;
66+
var TouchableRipple;
6767

68-
var HelperText = 0;
68+
var HelperText;
6969

70-
var Searchbar = 0;
70+
var Searchbar;
7171

72-
var List = 0;
72+
var List;
7373

74-
var ToggleButton = 0;
74+
var ToggleButton;
7575

76-
var Icon = 0;
76+
var Icon;
7777

7878
exports.ActivityIndicator = ActivityIndicator;
7979
exports.Appbar = Appbar;

src/Paper__Appbar.bs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
22

33

4-
var Action = { };
4+
var Action = {};
55

6-
var Content = { };
6+
var Content = {};
77

8-
var Header = { };
8+
var Header = {};
99

10-
var BackAction = { };
10+
var BackAction = {};
1111

1212
exports.Action = Action;
1313
exports.Content = Content;

src/Paper__Avatar.bs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22

33

4-
var Icon = { };
4+
var Icon = {};
55

6-
var $$Image = { };
6+
var $$Image = {};
77

8-
var $$Text = { };
8+
var $$Text = {};
99

1010
exports.Icon = Icon;
1111
exports.$$Image = $$Image;

src/Paper__Banner.bs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
var Curry = require("bs-platform/lib/js/curry.js");
44

55
function renderImage(reRenderIcon, jsIconProps) {
6-
return Curry._1(reRenderIcon, /* record */[/* size */jsIconProps.size]);
6+
return Curry._1(reRenderIcon, {
7+
size: jsIconProps.size
8+
});
79
}
810

911
exports.renderImage = renderImage;

src/Paper__Button.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[@bs.module "react-native-paper"] [@react.component]
22
external make:
33
(
4-
~mode: [@bs.string] [ | `text | `outlined | `contained]=?,
4+
~mode: [ | `text | `outlined | `contained]=?,
55
~disabled: bool=?,
66
~compact: bool=?,
77
~raised: bool=?,

src/Paper__Card.bs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

33

4-
var Actions = { };
4+
var Actions = {};
55

6-
var Content = { };
6+
var Content = {};
77

88
exports.Actions = Actions;
99
exports.Content = Content;

src/Paper__Checkbox.bs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

33

4-
var Android = { };
4+
var Android = {};
55

6-
var IOS = { };
6+
var IOS = {};
77

88
exports.Android = Android;
99
exports.IOS = IOS;

src/Paper__Checkbox.re

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[@bs.module "react-native-paper"] [@react.component]
22
external make:
33
(
4-
~status: [@bs.string] [ | `checked | `unchecked | `indeterminate],
4+
~status: [ | `checked | `unchecked | `indeterminate],
55
~theme: Paper__ThemeProvider.Theme.t=?,
66
~disabled: bool=?,
77
~uncheckColor: string=?,
@@ -15,7 +15,7 @@ module Android = {
1515
[@bs.module "react-native-paper"] [@bs.scope "Checkbox"] [@react.component]
1616
external make:
1717
(
18-
~status: [@bs.string] [ | `checked | `unchecked | `indeterminate],
18+
~status: [ | `checked | `unchecked | `indeterminate],
1919
~theme: Paper__ThemeProvider.Theme.t=?,
2020
~disabled: bool=?,
2121
~uncheckColor: string=?,
@@ -30,7 +30,7 @@ module IOS = {
3030
[@bs.module "react-native-paper"] [@bs.scope "Checkbox"] [@react.component]
3131
external make:
3232
(
33-
~status: [@bs.string] [ | `checked | `unchecked | `indeterminate],
33+
~status: [ | `checked | `unchecked | `indeterminate],
3434
~theme: Paper__ThemeProvider.Theme.t=?,
3535
~disabled: bool=?,
3636
~uncheckColor: string=?,

src/Paper__Chip.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[@bs.module "react-native-paper"] [@react.component]
22
external make:
33
(
4-
~mode: [@bs.string] [ | `outlined | `flat],
4+
~mode: [ | `outlined | `flat],
55
~selected: bool=?,
66
~disabled: bool=?,
77
~accessibilityLabel: string=?,

0 commit comments

Comments
 (0)