From a5a560b3e1dee1782450abae2a8e7f9e2b605609 Mon Sep 17 00:00:00 2001 From: Danny Cochran Date: Fri, 20 Jan 2017 13:28:33 -0800 Subject: [PATCH] Update webViewStatic to include postMessage API (#14151) --- react-native/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/react-native/index.d.ts b/react-native/index.d.ts index 92b04ef40c..d63a339d0a 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -2106,6 +2106,11 @@ declare module "react" { */ goForward: () => void + /** + * Post a message to the WebView in the form of a string. + */ + postMessage: (message: string) => void + /** * Reloads the current page. */