Skip to content

Commit a3b1cdb

Browse files
cknittMoOx
authored andcommitted
NativeMethods / element types (#452)
1 parent baa01ed commit a3b1cdb

File tree

136 files changed

+604
-631
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+604
-631
lines changed

reason-react-native/src/apis/Animated.bs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
var Caml_option = require("bs-platform/lib/js/caml_option.js");
44
var ReactNative = require("react-native");
5+
var Text$ReactNative = require("../components/Text.bs.js");
6+
var View$ReactNative = require("../components/View.bs.js");
57
var Image$ReactNative = require("../components/Image.bs.js");
8+
var ScrollView$ReactNative = require("../components/ScrollView.bs.js");
69

710
var Animation = /* module */[];
811

reason-react-native/src/components/ActivityIndicator.bs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

3+
var NativeElement$ReactNative = require("../elements/NativeElement.bs.js");
34

45
var Size = 0;
56

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ wip: true
55
---
66

77
```reason
8-
type element;
9-
type ref = React.Ref.t(Js.nullable(element));
8+
include NativeElement;
109
1110
module Size = ActivityIndicator_Size;
1211

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
type element;
2-
type ref = React.Ref.t(Js.nullable(element));
1+
include NativeElement;
32

43
module Size = ActivityIndicator_Size;
54

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
1+
'use strict';
2+
3+
var NativeElement$ReactNative = require("../elements/NativeElement.bs.js");
4+
5+
6+
/* NativeElement-ReactNative Not a pure module */

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
type element;
2-
type ref = React.Ref.t(Js.nullable(element));
1+
include NativeElement;
32

43
[@react.component] [@bs.module "react-native"]
54
external make:
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
1+
'use strict';
2+
3+
var DrawerLayoutAndroidElement$ReactNative = require("../elements/DrawerLayoutAndroidElement.bs.js");
4+
5+
6+
/* DrawerLayoutAndroidElement-ReactNative Not a pure module */

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ wip: true
55
---
66

77
```reason
8-
type element;
9-
type ref = React.Ref.t(Js.nullable(element));
8+
include DrawerLayoutAndroidElement;
109
1110
type drawerPosition;
1211
@@ -114,8 +113,4 @@ external make:
114113
React.element =
115114
"DrawerLayoutAndroid";
116115
117-
[@bs.send] external openDrawer: (element, unit) => unit = "";
118-
119-
[@bs.send] external closeDrawer: (element, unit) => unit = "";
120-
121116
```

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
type element;
2-
type ref = React.Ref.t(Js.nullable(element));
1+
include DrawerLayoutAndroidElement;
32

43
type drawerPosition;
54

@@ -106,7 +105,3 @@ external make:
106105
) =>
107106
React.element =
108107
"DrawerLayoutAndroid";
109-
110-
[@bs.send] external openDrawer: (element, unit) => unit = "";
111-
112-
[@bs.send] external closeDrawer: (element, unit) => unit = "";
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
1+
'use strict';
2+
3+
var VirtualizedListElement$ReactNative = require("../elements/VirtualizedListElement.bs.js");
4+
5+
6+
/* VirtualizedListElement-ReactNative Not a pure module */

0 commit comments

Comments
 (0)