No Description

index.d.ts 833B

123456789101112131415161718192021222324252627282930
  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. export interface StylesFile {
  9. href: string;
  10. type: string;
  11. rel: string;
  12. }
  13. export interface SizeUpdate {
  14. width:number,
  15. height:number
  16. }
  17. export interface AutoHeightWebViewProps extends WebViewProps {
  18. onSizeUpdated: (size: SizeUpdate)=>void;
  19. baseUrl: string;
  20. files: StylesFile[];
  21. style: ViewStyle;
  22. customScript: string;
  23. customStyle: string;
  24. }
  25. export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}