|  | @@ -0,0 +1,29 @@
 | 
	
		
			
			|  | 1 | +// Type definitions for react-native-autoheight-webview 1.x
 | 
	
		
			
			|  | 2 | +// Project: https://github.com/iou90/react-native-autoheight-webview
 | 
	
		
			
			|  | 3 | +// Definitions by: Naveen Ithappu <https://github.com/naveen-ithappu>
 | 
	
		
			
			|  | 4 | +// TypeScript Version: 2.8
 | 
	
		
			
			|  | 5 | +import { Component } from "react";
 | 
	
		
			
			|  | 6 | +import { WebViewProps } from "react-native-webview";
 | 
	
		
			
			|  | 7 | +import {ViewStyle} from "react-native";
 | 
	
		
			
			|  | 8 | +
 | 
	
		
			
			|  | 9 | +export interface StylesFile {
 | 
	
		
			
			|  | 10 | +    href: string;
 | 
	
		
			
			|  | 11 | +    type: string;
 | 
	
		
			
			|  | 12 | +    rel: string;
 | 
	
		
			
			|  | 13 | +}
 | 
	
		
			
			|  | 14 | +
 | 
	
		
			
			|  | 15 | +export interface SizeUpdate {
 | 
	
		
			
			|  | 16 | +    width:number,
 | 
	
		
			
			|  | 17 | +    height:number
 | 
	
		
			
			|  | 18 | +}
 | 
	
		
			
			|  | 19 | +
 | 
	
		
			
			|  | 20 | +export interface AutoHeightWebViewProps extends WebViewProps {
 | 
	
		
			
			|  | 21 | +    onSizeUpdated: (size: SizeUpdate)=>void;
 | 
	
		
			
			|  | 22 | +    baseUrl: string;
 | 
	
		
			
			|  | 23 | +    files: StylesFile[];
 | 
	
		
			
			|  | 24 | +    style: ViewStyle;
 | 
	
		
			
			|  | 25 | +    customScript: string;
 | 
	
		
			
			|  | 26 | +    customStyle: string;
 | 
	
		
			
			|  | 27 | +}
 | 
	
		
			
			|  | 28 | +
 | 
	
		
			
			|  | 29 | +export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}
 |