2019-03-21 14:29:57 +00:00
|
|
|
import { Component } from 'react';
|
2019-03-20 12:35:13 +00:00
|
|
|
// eslint-disable-next-line
|
|
|
|
import { IOSWebViewProps, AndroidWebViewProps } from './lib/WebViewTypes';
|
|
|
|
|
2019-03-27 08:25:59 +00:00
|
|
|
export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
|
|
|
|
|
|
|
|
declare class WebView extends Component<WebViewProps> {
|
2019-03-21 14:29:57 +00:00
|
|
|
/**
|
|
|
|
* Go back one page in the webview's history.
|
|
|
|
*/
|
|
|
|
goBack: () => void;
|
2019-03-20 12:35:13 +00:00
|
|
|
|
2019-03-21 14:29:57 +00:00
|
|
|
/**
|
|
|
|
* Go forward one page in the webview's history.
|
|
|
|
*/
|
|
|
|
goForward: () => void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reloads the current page.
|
|
|
|
*/
|
|
|
|
reload: () => void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Stop loading the current page.
|
|
|
|
*/
|
|
|
|
stopLoading(): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extra Native Component Config.
|
|
|
|
*/
|
|
|
|
extraNativeComponentConfig: () => any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Executes the JavaScript string.
|
|
|
|
*/
|
|
|
|
injectJavaScript: (script: string) => void;
|
2019-03-26 00:31:50 +00:00
|
|
|
}
|
2019-03-21 14:29:57 +00:00
|
|
|
|
|
|
|
export {WebView};
|
2019-03-20 12:35:13 +00:00
|
|
|
export default WebView;
|