설명 없음

index.d.ts 917B

12345678910111213141516171819202122232425262728293031323334
  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 { StyleProp, 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. files: StylesFile[];
  20. style: StyleProp<ViewStyle>;
  21. customScript: string;
  22. customStyle: string;
  23. viewportContent: string;
  24. scalesPageToFit: boolean;
  25. scrollEnabledWithZoomedin: boolean;
  26. }
  27. export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> { }