Aucune description

index.d.ts 856B

12345678910111213141516171819202122232425262728293031
  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. zoomable: boolean;
  25. }
  26. export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}