File tree Expand file tree Collapse file tree 18 files changed +99
-106
lines changed Expand file tree Collapse file tree 18 files changed +99
-106
lines changed Original file line number Diff line number Diff line change 1- ** API** • ** Docs **
1+ ** API**
22
33***
44
Original file line number Diff line number Diff line change 1- [ ** API** ] ( ../API.md ) • ** Docs **
1+ [ ** API** ] ( ../API.md )
22
33***
44
55# index
66
77Modules 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 )
Original file line number Diff line number Diff line change 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+
911A 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 )
Original file line number Diff line number Diff line change 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**
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 )
Original file line number Diff line number Diff line change 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**
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 )
Original file line number Diff line number Diff line change 1- [ ** API** ] ( ../API.md ) • ** Docs **
1+ [ ** API** ] ( ../API.md )
22
33***
44
55# plugin
66
77Custom babelTransformer for metro bundler
88
9- ## Index
10-
11- ### Functions
9+ ## Functions
1210
1311- [ createTransformer] ( functions/createTransformer.md )
1412- [ transform] ( functions/transform.md )
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 1- [ ** API** ] ( ../../API.md ) • ** Docs **
1+ [ ** API** ] ( ../../API.md )
22
33***
44
55# web/preact
66
77Modules for Preact
88
9- ## Index
10-
11- ### Functions
9+ ## Functions
1210
1311- [ webViewRender] ( functions/webViewRender.md )
1412- [ useNativeMessage] ( functions/useNativeMessage.md )
Original file line number Diff line number Diff line change 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+
911A 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 )
You can’t perform that action at this time.
0 commit comments