説明なし

index.d.ts 742B

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