Skip to content

Commit

Permalink
fix(types): Update Typescript definition file (react-native-webview#1597
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mathieubruguier authored Aug 31, 2020
1 parent 4d4b5e2 commit 9dcd108
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 9dcd108

Please sign in to comment.