WebViewErrorEvent
code and description are the platform's: an NSURLError code on iOS, a WebViewClient one on Android.
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 WebViewErrorEvent = NativeViewEvent<
'error',
WebViewNavigation & { code: number; description: string }
>;Members 10
| Name | Type | Required | Description |
|---|---|---|---|
type | "error" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
url | string | Yes | — |
title | string | Yes | — |
loading | boolean | Yes | — |
canGoBack | boolean | Yes | — |
canGoForward | boolean | Yes | — |
code | number | Yes | — |
description | 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.