Browse Source

Update index.d.ts

Add WebView `class` methods to type
Krisztiaan 3 years ago
parent
commit
e510c28482
No account linked to committer's email address
1 changed files with 36 additions and 1 deletions
  1. 36
    1
      index.d.ts

+ 36
- 1
index.d.ts View File

@@ -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
+}