# MinimalWebViewHooks

Native hooks: Swift in your own Expo module that gets the real WKWebView behind each WebView, its creation-time configuration and a [`WebViewContext`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/webviewcontext/index.md>), with no protocol to implement.

```swift
enum MinimalWebViewHooks
```

## Overview

A hook attaches to each WebView whose `extensions` prop has an extension with its key that is on; [`HookExtension.options`](<https://rasmuskard.github.io/react-native-minimal-webview/typescript/react-native-minimal-webview/type-aliases/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](<https://rasmuskard.github.io/react-native-minimal-webview/guides/native-hooks/>)
