From 6da6b417ba98e9488d97636748416affdb416366 Mon Sep 17 00:00:00 2001 From: ifsnow Date: Tue, 30 Oct 2018 22:48:10 +0900 Subject: [PATCH] chore(documentation): Updated the documentation for `injectJavaScript` (#114) --- docs/Reference.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/Reference.md b/docs/Reference.md index c248024..03c8ffd 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -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).