瀏覽代碼

Update index.d.ts

Add WebView `class` methods to type
Krisztiaan 4 年之前
父節點
當前提交
e510c28482
No account linked to committer's email address
共有 1 個文件被更改,包括 36 次插入1 次删除
  1. 36
    1
      index.d.ts

+ 36
- 1
index.d.ts 查看文件

@@ -30,4 +30,39 @@ export interface AutoHeightWebViewProps extends WebViewProps {
30 30
   scrollEnabledWithZoomedin: boolean;
31 31
 }
32 32
 
33
-export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> { }
33
+export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {
34
+  /**
35
+   * Go back one page in the webview's history.
36
+   */
37
+  goBack(): void;
38
+
39
+  /**
40
+   * Go forward one page in the webview's history.
41
+   */
42
+  goForward(): void;
43
+
44
+  /**
45
+   * Reloads the current page.
46
+   */
47
+  reload(): void;
48
+
49
+  /**
50
+   * Stop loading the current page.
51
+   */
52
+  stopLoading(): void;
53
+
54
+  /**
55
+   * Extra Native Component Config.
56
+   */
57
+  extraNativeComponentConfig(): any;
58
+
59
+  /**
60
+   * Executes the JavaScript string.
61
+   */
62
+  injectJavaScript(script: string): void;
63
+
64
+  /**
65
+   * Focuses on WebView redered page.
66
+   */
67
+  requestFocus(): void;
68
+}