# register(\_:webViewClass:configure:attach:file:line:)

> **Deprecated**: file: and line: do nothing; drop them

Deprecated: `file` and `line` do nothing. Use [`register(_:webViewClass:configure:attach:)`](<https://rasmuskard.github.io/react-native-minimal-webview/swift/documentation/minimalwebview/minimalwebviewhooks/register(_-webviewclass-configure-attach-)/index.md>).

```
static func register(_ key: String, webViewClass: WKWebView.Type? = nil, configure: ((WKWebViewConfiguration, WebViewContext) -> Void)? = nil, attach: @escaping (WKWebView, WebViewContext) -> Void, file: String = #fileID, line: Int = #line)
```
