WebViewMessageEvent
data is the string the page passed to window.KuitoWebView.postMessage; url is the page's.
Usage
Embed a hosted help page
This type is used by WebView
import { WebView } from 'kuito';
export default function Help() {
return <WebView flex={1} src="https://example.com/help" />;
}Type declaration
export type WebViewMessageEvent = NativeViewEvent<'message', { data: string; url: string }>;Members 5
| Name | Type | Required | Description |
|---|---|---|---|
type | "message" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
data | string | Yes | — |
url | string | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.