-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
837 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# API | ||
**API** • **Docs** | ||
|
||
*** | ||
|
||
## Table of contents | ||
# API | ||
|
||
### Modules | ||
## Modules | ||
|
||
- [index](modules/index.md) | ||
- [plugin](modules/plugin.md) | ||
- [web/react](modules/web_react.md) | ||
- [web/preact](modules/web_preact.md) | ||
- [index](index/API.md) | ||
- [plugin](plugin/API.md) | ||
- [web/react](web/react/API.md) | ||
- [web/preact](web/preact/API.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[**API**](../API.md) • **Docs** | ||
|
||
*** | ||
|
||
# index | ||
|
||
Modules for React Native | ||
|
||
## Index | ||
|
||
### Functions | ||
|
||
- [useWebViewMessage](functions/useWebViewMessage.md) | ||
|
||
### Interfaces | ||
|
||
- [ReactNativeMessage](interfaces/ReactNativeMessage.md) | ||
- [WebViewMessage](interfaces/WebViewMessage.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[**API**](../../API.md) • **Docs** | ||
|
||
*** | ||
|
||
# Function: useWebViewMessage() | ||
|
||
> **useWebViewMessage**\<`T`\>(`onSubscribe`): `object` | ||
A hook to subscribe messages from WebView. | ||
|
||
## Type Parameters | ||
|
||
• **T** | ||
|
||
## Parameters | ||
|
||
• **onSubscribe** | ||
|
||
## Returns | ||
|
||
`object` | ||
|
||
### ref | ||
|
||
> **ref**: `RefObject`\<`WebView`\<`object`\>\> | ||
### onMessage() | ||
|
||
> **onMessage**: (`event`) => `void` | ||
#### Parameters | ||
|
||
• **event**: `WebViewMessageEvent` | ||
|
||
#### Returns | ||
|
||
`void` | ||
|
||
### emit() | ||
|
||
> **emit**: (`message`) => `void` | ||
#### Parameters | ||
|
||
• **message**: [`ReactNativeMessage`](../interfaces/ReactNativeMessage.md)\<`T`\> | ||
|
||
#### Returns | ||
|
||
`void` | ||
|
||
## Defined in | ||
|
||
[src/native/index.ts:28](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/native/index.ts#L28) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[**API**](../../API.md) • **Docs** | ||
|
||
*** | ||
|
||
# Interface: ReactNativeMessage\<T\> | ||
|
||
## Type Parameters | ||
|
||
• **T** | ||
|
||
## Properties | ||
|
||
### type | ||
|
||
> **type**: `string` | ||
#### Defined in | ||
|
||
[src/types.ts:7](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L7) | ||
|
||
*** | ||
|
||
### data | ||
|
||
> **data**: `T` | ||
#### Defined in | ||
|
||
[src/types.ts:8](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[**API**](../../API.md) • **Docs** | ||
|
||
*** | ||
|
||
# Interface: WebViewMessage\<T\> | ||
|
||
## Type Parameters | ||
|
||
• **T** | ||
|
||
## Properties | ||
|
||
### type | ||
|
||
> **type**: `string` | ||
#### Defined in | ||
|
||
[src/types.ts:2](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L2) | ||
|
||
*** | ||
|
||
### data | ||
|
||
> **data**: `T` | ||
#### Defined in | ||
|
||
[src/types.ts:3](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L3) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.