Skip to content

Commit

Permalink
docs: add info about new props
Browse files Browse the repository at this point in the history
  • Loading branch information
mironiasty committed Dec 12, 2023
1 parent 687276e commit 09b2d5c
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 09b2d5c

Please sign in to comment.