# 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](<https://rasmuskard.github.io/react-native-minimal-webview/guides/native-hooks/>).

## Topics

### Hooks

[`MinimalWebViewHooks`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/minimalwebviewhooks/index.md>)

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.

[`WebViewContext`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/webviewcontext/index.md>)

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

[`HookReply`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/hookreply/index.md>)

The answer to one JS `ref.hook` call, which a [`handle(_:_:)`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/webviewcontext/handle(_-_-)/index.md>) handler gets: call it with the value the call resolves with, or [`fail(_:)`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/hookreply/fail(_-)/index.md>) it.

[`DocumentEnd`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/documentend/index.md>)

Why a Document ended, as [`onDocumentEnd(_:)`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/webviewcontext/ondocumentend(_-)/index.md>) and [`onDestroyed(_:)`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/webviewcontext/ondestroyed(_-)/index.md>) report it.
