Skip to content

Commit 60147d8

Browse files
committed
bs-react-native-next: add AppRegistry.getApplication (react-native-web)
1 parent d514e95 commit 60147d8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
[@bs.module "react-native"] [@bs.scope "AppRegistry"]
22
external registerComponent: (string, unit => React.component('a)) => unit =
3-
"";
3+
"registerComponent";
4+
5+
/* react-native-web */
6+
type app = {
7+
.
8+
"element": React.element,
9+
[@bs.meth] "getStyleElement": unit => React.element,
10+
};
11+
[@bs.module "react-native"] [@bs.scope "AppRegistry"]
12+
external getApplication: (string, {. "initialProps": 'a}) => app =
13+
"getApplication";

0 commit comments

Comments
 (0)