From 9dcd108b1fc58964a6dd4a49b99d7656386cdc45 Mon Sep 17 00:00:00 2001 From: Mathieu Bruguier Date: Mon, 31 Aug 2020 06:18:57 -0700 Subject: [PATCH] fix(types): Update Typescript definition file (#1597) --- index.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/index.d.ts b/index.d.ts index 4d46c2e84..b0a8542c7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -41,6 +41,29 @@ declare class WebView extends Component { * Focuses on WebView redered page. */ requestFocus: () => void; + + /** + * Posts a message to WebView. + */ + postMessage: (message: string) => void; + + /** + * (Android only) + * Removes the autocomplete popup from the currently focused form field, if present. + */ + clearFormData: () => void; + + /** + * (Android only) + * Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used. + */ + clearCache: (clear: boolean) => void; + + /** + * (Android only) + * Tells this WebView to clear its internal back/forward list. + */ + clearHistory: () => void; } export {WebView};