fix(types): Update Typescript definition file (#1597)

This commit is contained in:
Mathieu Bruguier 2020-08-31 06:18:57 -07:00 committed by GitHub
parent 4d4b5e2387
commit 9dcd108b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
index.d.ts vendored
View File

@ -41,6 +41,29 @@ declare class WebView extends Component<WebViewProps> {
* 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};