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.
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
navigationDelegateanduiDelegate(add to the context’s lists instead), and the bridge’s script message handler and user scripts.