Skip to content

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.

enum MinimalWebViewHooks

Overview

A hook attaches to each WebView whose extensions prop has an extension with its key that is on; HookExtension.options says when.

Important: Leave alone what the core owns: the WKWebView’s own navigationDelegate and uiDelegate (add to the context’s lists instead), and the bridge’s script message handler and user scripts.

See Also

Native hooks guide