@@ -7,6 +7,7 @@ Modules for React DOM
77### Functions
88
99- [ webViewRender] ( web_react.md#webviewrender )
10+ - [ webViewCreateRoot] ( web_react.md#webviewcreateroot )
1011- [ useNativeMessage] ( web_react.md#usenativemessage )
1112- [ emit] ( web_react.md#emit )
1213
@@ -16,25 +17,54 @@ Modules for React DOM
1617
1718▸ ** webViewRender** (` root ` ): ` string `
1819
20+ The entry point of web file
21+
22+ This statement is detected by babelTransformer as an entry point
23+ All dependencies are resolved, compressed and stringified into one file
24+
1925#### Parameters
2026
2127| Name | Type |
2228| :------ | :------ |
23- | ` root ` | ` ReactNode ` |
29+ | ` root ` | ` ReactElement ` \< ` any ` , ` string ` \| ` JSXElementConstructor ` \< ` any ` \>\> |
2430
2531#### Returns
2632
2733` string `
2834
2935#### Defined in
3036
31- [ src/web/core.ts:5] ( https://github.com/inokawa/react-native-react-bridge/blob/2039b21/src/web/core.ts#L5 )
37+ [ src/web/react.ts:18] ( https://github.com/inokawa/react-native-react-bridge/blob/6e88c7aaeb2065facab677943b1589e38f6c4a47/src/web/react.ts#L18 )
38+
39+ ___
40+
41+ ### webViewCreateRoot
42+
43+ ▸ ** webViewCreateRoot** (` root ` ): ` string `
44+
45+ [ webViewRender] ( web_react.md#webviewrender ) but initiated with React's createRoot
46+
47+ #### Parameters
48+
49+ | Name | Type |
50+ | :------ | :------ |
51+ | ` root ` | ` ReactElement ` \< ` any ` , ` string ` \| ` JSXElementConstructor ` \< ` any ` \>\> |
52+
53+ #### Returns
54+
55+ ` string `
56+
57+ #### Defined in
58+
59+ [ src/web/react.ts:26] ( https://github.com/inokawa/react-native-react-bridge/blob/6e88c7aaeb2065facab677943b1589e38f6c4a47/src/web/react.ts#L26 )
3260
3361___
3462
3563### useNativeMessage
3664
37- ▸ ** useNativeMessage** <` T ` \> (` onSubscribe ` ): ` void `
65+ ▸ ** useNativeMessage** \< ` T ` \> (` onSubscribe ` ): ` void `
66+
67+ A hook to subscribe messages from React Native.
3868
3969#### Type parameters
4070
4676
4777| Name | Type |
4878| :------ | :------ |
49- | ` onSubscribe ` | (` message ` : [ ` Message ` ] ( index.md#message ) <` T ` \> ) => ` void ` |
79+ | ` onSubscribe ` | (` message ` : [ ` ReactNativeMessage ` ] ( ../interfaces/ index.ReactNativeMessage.md ) \ <` T ` \> ) => ` void ` |
5080
5181#### Returns
5282
5383` void `
5484
5585#### Defined in
5686
57- [ src/web/core .ts:18 ] ( https://github.com/inokawa/react-native-react-bridge/blob/2039b21 /src/web/core .ts#L18 )
87+ [ src/web/react .ts:34 ] ( https://github.com/inokawa/react-native-react-bridge/blob/6e88c7aaeb2065facab677943b1589e38f6c4a47 /src/web/react .ts#L34 )
5888
5989___
6090
6191### emit
6292
63- ▸ ** emit** <` T ` \> (` message ` ): ` void `
93+ ▸ ** emit** \< ` T ` \> (` message ` ): ` void `
94+
95+ A function to send a message to React Native
6496
6597#### Type parameters
6698
72104
73105| Name | Type |
74106| :------ | :------ |
75- | ` message ` | [ ` Message ` ] ( index.md#message ) <` T ` \> |
107+ | ` message ` | [ ` WebViewMessage ` ] ( ../interfaces/ index.WebViewMessage.md ) \ <` T ` \> |
76108
77109#### Returns
78110
79111` void `
80112
81113#### Defined in
82114
83- [ src/web/core.ts:11 ] ( https://github.com/inokawa/react-native-react-bridge/blob/2039b21 /src/web/core.ts#L11 )
115+ [ src/web/core.ts:13 ] ( https://github.com/inokawa/react-native-react-bridge/blob/6e88c7aaeb2065facab677943b1589e38f6c4a47 /src/web/core.ts#L13 )
0 commit comments