|
@@ -1,10 +1,9 @@
|
1
|
1
|
// Type definitions for react-native-autoheight-webview 1.x
|
2
|
2
|
// Project: https://github.com/iou90/react-native-autoheight-webview
|
3
|
3
|
// Definitions by: Naveen Ithappu <https://github.com/naveen-ithappu>
|
4
|
|
-// TypeScript Version: 2.8
|
5
|
|
-import { Component } from 'react';
|
|
4
|
+// TypeScript Version: ^3.9.7
|
6
|
5
|
|
7
|
|
-import { WebViewProps } from 'react-native-webview';
|
|
6
|
+import WebView, { WebViewProps } from 'react-native-webview';
|
8
|
7
|
|
9
|
8
|
import { StyleProp, ViewStyle } from 'react-native';
|
10
|
9
|
|
|
@@ -30,4 +29,4 @@ export interface AutoHeightWebViewProps extends WebViewProps {
|
30
|
29
|
scrollEnabledWithZoomedin: boolean;
|
31
|
30
|
}
|
32
|
31
|
|
33
|
|
-export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> { }
|
|
32
|
+export default class AutoHeightWebView extends WebView<Partial<AutoHeightWebViewProps>> {}
|