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