forked from react-native-webview/react-native-webview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (32 loc) · 850 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { Component } from 'react';
// eslint-disable-next-line
import { IOSWebViewProps, AndroidWebViewProps } from './lib/WebViewTypes';
export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
declare class WebView extends Component<WebViewProps> {
/**
* Go back one page in the webview's history.
*/
goBack: () => void;
/**
* 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;
}
export {WebView};
export default WebView;