Skip to content

MinimalWebView

For native-hook authors: the Swift API a hook gets. An app that only renders <WebView> doesn’t need it. Start with the native hooks guide.

Topics

Hooks

MinimalWebViewHooks

Native hooks: Swift in your own Expo module that gets the real WKWebView behind each WebView, its creation-time configuration and a WebViewContext, with no protocol to implement.

WebViewContext

One WebView as one hook sees it, for the life of the WKWebView.

HookReply

The answer to one JS ref.hook call, which a handle(_:_:) handler gets: call it with the value the call resolves with, or fail(_:) it.

DocumentEnd

Why a Document ended, as onDocumentEnd(_:) and onDestroyed(_:) report it.