|
14 | 14 | |
15 | 15 | # What Can WKWebViewJavascriptBridge Do? |
16 | 16 |
|
17 | | -You can write hybrid moudles in just a few lines of code by use WKWebViewJavascriptBridge without need to be concerned with the underlying messaging implementation. |
| 17 | +You can write hybrid modules in just a few lines of code by using WKWebViewJavascriptBridge without the need to be concerned with the underlying messaging implementation. |
18 | 18 |
|
19 | 19 |  |
20 | 20 |
|
@@ -51,8 +51,8 @@ bridge = WKWebViewJavascriptBridge(webView: webView) |
51 | 51 | ### 2. Register a Handler in Native, and Call a JS Handler: |
52 | 52 |
|
53 | 53 | ``` swift |
54 | | -bridge.register(handlerName: "testiOSCallback") { (paramters, callback) in |
55 | | - print("testiOSCallback called: \(String(describing: paramters))") |
| 54 | +bridge.register(handlerName: "testiOSCallback") { (parameters, callback) in |
| 55 | + print("testiOSCallback called: \(String(describing: parameters))") |
56 | 56 | callback?("Response from testiOSCallback") |
57 | 57 | } |
58 | 58 |
|
|
0 commit comments