Skip to content

Commit 87a48a7

Browse files
committed
0.12.4
1 parent a54748f commit 87a48a7

18 files changed

+99
-106
lines changed

docs/API.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**API****Docs**
1+
**API**
22

33
***
44

docs/index/API.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
[**API**](../API.md)**Docs**
1+
[**API**](../API.md)
22

33
***
44

55
# index
66

77
Modules for React Native
88

9-
## Index
10-
11-
### Functions
9+
## Functions
1210

1311
- [useWebViewMessage](functions/useWebViewMessage.md)
1412

15-
### Interfaces
13+
## Interfaces
1614

1715
- [ReactNativeMessage](interfaces/ReactNativeMessage.md)
1816
- [WebViewMessage](interfaces/WebViewMessage.md)

docs/index/functions/useWebViewMessage.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
[**API**](../../API.md)**Docs**
1+
[**API**](../../API.md)
22

33
***
44

55
# Function: useWebViewMessage()
66

77
> **useWebViewMessage**\<`T`\>(`onSubscribe`): `object`
88
9+
Defined in: [src/native/index.ts:28](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/native/index.ts#L28)
10+
911
A hook to subscribe messages from WebView.
1012

1113
## Type Parameters
@@ -14,23 +16,27 @@ A hook to subscribe messages from WebView.
1416

1517
## Parameters
1618

17-
**onSubscribe**
19+
### onSubscribe
20+
21+
(`message`) => `void`
1822

1923
## Returns
2024

2125
`object`
2226

2327
### ref
2428

25-
> **ref**: `RefObject`\<`WebView`\<`object`\>\>
29+
> **ref**: `RefObject`\<`WebView`\<\{\}\>\>
2630
2731
### onMessage()
2832

2933
> **onMessage**: (`event`) => `void`
3034
3135
#### Parameters
3236

33-
**event**: `WebViewMessageEvent`
37+
##### event
38+
39+
`WebViewMessageEvent`
3440

3541
#### Returns
3642

@@ -42,12 +48,10 @@ A hook to subscribe messages from WebView.
4248
4349
#### Parameters
4450

45-
**message**: [`ReactNativeMessage`](../interfaces/ReactNativeMessage.md)\<`T`\>
51+
##### message
52+
53+
[`ReactNativeMessage`](../interfaces/ReactNativeMessage.md)\<`T`\>
4654

4755
#### Returns
4856

4957
`void`
50-
51-
## Defined in
52-
53-
[src/native/index.ts:28](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/native/index.ts#L28)
+5-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
[**API**](../../API.md)**Docs**
1+
[**API**](../../API.md)
22

33
***
44

55
# Interface: ReactNativeMessage\<T\>
66

7+
Defined in: [src/types.ts:6](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/types.ts#L6)
8+
79
## Type Parameters
810

911
**T**
@@ -14,16 +16,12 @@
1416

1517
> **type**: `string`
1618
17-
#### Defined in
18-
19-
[src/types.ts:7](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/types.ts#L7)
19+
Defined in: [src/types.ts:7](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/types.ts#L7)
2020

2121
***
2222

2323
### data
2424

2525
> **data**: `T`
2626
27-
#### Defined in
28-
29-
[src/types.ts:8](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/types.ts#L8)
27+
Defined in: [src/types.ts:8](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/types.ts#L8)
+5-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
[**API**](../../API.md)**Docs**
1+
[**API**](../../API.md)
22

33
***
44

55
# Interface: WebViewMessage\<T\>
66

7+
Defined in: [src/types.ts:1](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/types.ts#L1)
8+
79
## Type Parameters
810

911
**T**
@@ -14,16 +16,12 @@
1416

1517
> **type**: `string`
1618
17-
#### Defined in
18-
19-
[src/types.ts:2](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/types.ts#L2)
19+
Defined in: [src/types.ts:2](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/types.ts#L2)
2020

2121
***
2222

2323
### data
2424

2525
> **data**: `T`
2626
27-
#### Defined in
28-
29-
[src/types.ts:3](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/types.ts#L3)
27+
Defined in: [src/types.ts:3](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/types.ts#L3)

docs/plugin/API.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
[**API**](../API.md)**Docs**
1+
[**API**](../API.md)
22

33
***
44

55
# plugin
66

77
Custom babelTransformer for metro bundler
88

9-
## Index
10-
11-
### Functions
9+
## Functions
1210

1311
- [createTransformer](functions/createTransformer.md)
1412
- [transform](functions/transform.md)

docs/plugin/functions/createTransformer.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
[**API**](../../API.md)**Docs**
1+
[**API**](../../API.md)
22

33
***
44

55
# Function: createTransformer()
66

77
> **createTransformer**(`esbuildOptions`): (`args`) => `Promise`\<`any`\>
88
9+
Defined in: [src/plugin/index.ts:35](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/plugin/index.ts#L35)
10+
911
## Parameters
1012

11-
**esbuildOptions**: `Omit`\<`BuildOptions`, `"write"` \| `"entryPoints"` \| `"alias"`\> = `{}`
13+
### esbuildOptions
14+
15+
`Omit`\<`BuildOptions`, `"write"` \| `"entryPoints"` \| `"alias"`\> = `{}`
1216

1317
## Returns
1418

1519
`Function`
1620

1721
### Parameters
1822

19-
**args**: `any`
23+
#### args
24+
25+
`any`
2026

2127
### Returns
2228

2329
`Promise`\<`any`\>
24-
25-
## Defined in
26-
27-
[src/plugin/index.ts:35](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/plugin/index.ts#L35)

docs/plugin/functions/transform.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
[**API**](../../API.md)**Docs**
1+
[**API**](../../API.md)
22

33
***
44

55
# Function: transform()
66

77
> **transform**(`args`): `Promise`\<`any`\>
88
9+
Defined in: [src/plugin/index.ts:53](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/plugin/index.ts#L53)
10+
911
## Parameters
1012

11-
**args**: `any`
13+
### args
14+
15+
`any`
1216

1317
## Returns
1418

1519
`Promise`\<`any`\>
16-
17-
## Defined in
18-
19-
[src/plugin/index.ts:56](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/plugin/index.ts#L56)

docs/web/preact/API.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
[**API**](../../API.md)**Docs**
1+
[**API**](../../API.md)
22

33
***
44

55
# web/preact
66

77
Modules for Preact
88

9-
## Index
10-
11-
### Functions
9+
## Functions
1210

1311
- [webViewRender](functions/webViewRender.md)
1412
- [useNativeMessage](functions/useNativeMessage.md)
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
[**API**](../../../API.md)**Docs**
1+
[**API**](../../../API.md)
22

33
***
44

55
# Function: useNativeMessage()
66

77
> **useNativeMessage**\<`T`\>(`onSubscribe`): `void`
88
9+
Defined in: [src/web/preact.ts:25](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/preact.ts#L25)
10+
911
A hook to subscribe messages from React Native.
1012

1113
## Type Parameters
@@ -14,12 +16,10 @@ A hook to subscribe messages from React Native.
1416

1517
## Parameters
1618

17-
**onSubscribe**
19+
### onSubscribe
20+
21+
(`message`) => `void`
1822

1923
## Returns
2024

2125
`void`
22-
23-
## Defined in
24-
25-
[src/web/preact.ts:25](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/web/preact.ts#L25)
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
[**API**](../../../API.md)**Docs**
1+
[**API**](../../../API.md)
22

33
***
44

55
# Function: webViewRender()
66

77
> **webViewRender**(`root`): `string`
88
9+
Defined in: [src/web/preact.ts:17](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/preact.ts#L17)
10+
911
The entry point of web file
1012

1113
This statement is detected by babelTransformer as an entry point
1214
All dependencies are resolved, compressed and stringified into one file
1315

1416
## Parameters
1517

16-
**root**: `ComponentChild`
18+
### root
19+
20+
`ComponentChild`
1721

1822
## Returns
1923

2024
`string`
21-
22-
## Defined in
23-
24-
[src/web/preact.ts:17](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/web/preact.ts#L17)

docs/web/react/API.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
[**API**](../../API.md)**Docs**
1+
[**API**](../../API.md)
22

33
***
44

55
# web/react
66

77
Modules for React DOM
88

9-
## Index
10-
11-
### Functions
9+
## Functions
1210

1311
- [webViewRender](functions/webViewRender.md)
1412
- [webViewCreateRoot](functions/webViewCreateRoot.md)

docs/web/react/functions/emit.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
[**API**](../../../API.md)**Docs**
1+
[**API**](../../../API.md)
22

33
***
44

55
# Function: emit()
66

77
> **emit**\<`T`\>(`message`): `void`
88
9+
Defined in: [src/web/core.ts:13](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/core.ts#L13)
10+
911
A function to send a message to React Native
1012

1113
## Type Parameters
@@ -14,12 +16,10 @@ A function to send a message to React Native
1416

1517
## Parameters
1618

17-
**message**: [`WebViewMessage`](../../../index/interfaces/WebViewMessage.md)\<`T`\>
19+
### message
20+
21+
[`WebViewMessage`](../../../index/interfaces/WebViewMessage.md)\<`T`\>
1822

1923
## Returns
2024

2125
`void`
22-
23-
## Defined in
24-
25-
[src/web/core.ts:13](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/web/core.ts#L13)
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
[**API**](../../../API.md)**Docs**
1+
[**API**](../../../API.md)
22

33
***
44

55
# Function: useNativeMessage()
66

77
> **useNativeMessage**\<`T`\>(`onSubscribe`): `void`
88
9+
Defined in: [src/web/react.ts:34](https://github.com/inokawa/react-native-react-bridge/blob/a54748fc9a4bfd9c93c7e9a7c5213de725bd9170/src/web/react.ts#L34)
10+
911
A hook to subscribe messages from React Native.
1012

1113
## Type Parameters
@@ -14,12 +16,10 @@ A hook to subscribe messages from React Native.
1416

1517
## Parameters
1618

17-
**onSubscribe**
19+
### onSubscribe
20+
21+
(`message`) => `void`
1822

1923
## Returns
2024

2125
`void`
22-
23-
## Defined in
24-
25-
[src/web/react.ts:34](https://github.com/inokawa/react-native-react-bridge/blob/d26d92078fb33b1c0c8fd4a3ec39d47e56a03c08/src/web/react.ts#L34)

0 commit comments

Comments
 (0)