chore(documentation): Updated the documentation for injectJavaScript (#114)

This commit is contained in:
ifsnow 2018-10-30 22:48:10 +09:00 committed by Thibault Malbranche
parent 30237f39ba
commit 6da6b417ba

View File

@ -8,7 +8,6 @@ This document lays out the current public properties and methods for the React N
- [`source`](Reference.md#source)
- [`automaticallyAdjustContentInsets`](Reference.md#automaticallyadjustcontentinsets)
- [`injectJavaScript`](Reference.md#injectjavascript)
- [`injectedJavaScript`](Reference.md#injectedjavascript)
- [`mediaPlaybackRequiresUserAction`](Reference.md#mediaplaybackrequiresuseraction)
- [`nativeConfig`](Reference.md#nativeconfig)
@ -53,6 +52,7 @@ This document lays out the current public properties and methods for the React N
- [`goBack`](Reference.md#goback)
- [`reload`](Reference.md#reload)
- [`stopLoading`](Reference.md#stoploading)
- [`injectJavaScript`](Reference.md#injectjavascriptstr)
---
@ -96,16 +96,6 @@ Controls whether to adjust the content inset for web views that are placed behin
---
### `injectJavaScript`
Function that accepts a string that will be passed to the WebView and executed immediately as JavaScript.
| Type | Required |
| -------- | -------- |
| function | No |
---
### `injectedJavaScript`
Set this to provide JavaScript that will be injected into the web page when the view loads.
@ -546,6 +536,14 @@ stopLoading();
Stop loading the current page.
### `injectJavaScript(str)`
```javascript
injectJavaScript("... javascript string ...");
```
Executes the JavaScript string.
## Other Docs
Also check out our [Getting Started Guide](Getting-Started.md) and [In-Depth Guide](Guide.md).