Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mironiasty committed Dec 12, 2023
1 parent 687276e commit fd451ca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/turbo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,24 @@ webkit.messageHandlers.nativeApp.postMessage(message);
```

### `onWebAlert`

Function called when website inside WebView is calling `alert` function. By default React Native's `Alert` is displayed.

Note that after handling alert display, `callback` function must be called.

- message
- callback

### `onWebConfirm`

Function called when website inside WebView is calling `confirm` function. By default React Native's `Alert` is displayed (with two buttons).

Note that after handling confirm dialog display, `callback` function must be called with result (`true`/`false`)

- message
- callback

### Methods:

### `injectJavaScript(jsCode)`
Expand Down

0 comments on commit fd451ca

Please sign in to comment.