You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defined in: [src/native/index.ts:28](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/native/index.ts#L28)
10
+
9
11
A hook to subscribe messages from WebView.
10
12
11
13
## Type Parameters
@@ -14,23 +16,27 @@ A hook to subscribe messages from WebView.
14
16
15
17
## Parameters
16
18
17
-
• **onSubscribe**
19
+
### onSubscribe
20
+
21
+
(`message`) => `void`
18
22
19
23
## Returns
20
24
21
25
`object`
22
26
23
27
### ref
24
28
25
-
> **ref**: `RefObject`\<`WebView`\<`object`\>\>
29
+
> **ref**: `RefObject`\<`WebView`\<\{\}\>\>
26
30
27
31
### onMessage()
28
32
29
33
> **onMessage**: (`event`) => `void`
30
34
31
35
#### Parameters
32
36
33
-
• **event**: `WebViewMessageEvent`
37
+
##### event
38
+
39
+
`WebViewMessageEvent`
34
40
35
41
#### Returns
36
42
@@ -42,12 +48,10 @@ A hook to subscribe messages from WebView.
Defined in: [src/plugin/index.ts:35](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/plugin/index.ts#L35)
Defined in: [src/plugin/index.ts:53](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/plugin/index.ts#L53)
Defined in: [src/web/preact.ts:25](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/preact.ts#L25)
10
+
9
11
A hook to subscribe messages from React Native.
10
12
11
13
## Type Parameters
@@ -14,12 +16,10 @@ A hook to subscribe messages from React Native.
Defined in: [src/web/preact.ts:17](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/preact.ts#L17)
10
+
9
11
The entry point of web file
10
12
11
13
This statement is detected by babelTransformer as an entry point
12
14
All dependencies are resolved, compressed and stringified into one file
Defined in: [src/web/core.ts:13](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/core.ts#L13)
10
+
9
11
A function to send a message to React Native
10
12
11
13
## Type Parameters
@@ -14,12 +16,10 @@ A function to send a message to React Native
Defined in: [src/web/react.ts:34](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/react.ts#L34)
10
+
9
11
A hook to subscribe messages from React Native.
10
12
11
13
## Type Parameters
@@ -14,12 +16,10 @@ A hook to subscribe messages from React Native.
0 commit comments