forked from iou90/react-native-autoheight-webview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
31 lines (25 loc) · 822 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
// Type definitions for react-native-autoheight-webview 1.x
// Project: https://github.com/iou90/react-native-autoheight-webview
// Definitions by: Naveen Ithappu <https://github.com/naveen-ithappu>
// TypeScript Version: 2.8
import { Component } from 'react';
import { WebViewProps } from 'react-native-webview';
import { ViewStyle } from 'react-native';
export interface StylesFile {
href: string;
type: string;
rel: string;
}
export interface SizeUpdate {
width: number;
height: number;
}
export interface AutoHeightWebViewProps extends WebViewProps {
onSizeUpdated: (size: SizeUpdate) => void;
files: StylesFile[];
style: ViewStyle;
customScript: string;
customStyle: string;
zoomable: boolean;
}
export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}