123456789101112131415161718192021222324252627282930313233 |
-
-
-
-
- import { Component } from 'react';
-
- import { WebViewProps } from 'react-native-webview';
-
- import { ViewStyle } from 'react-native';
-
- export interface StylesFile {
- href: string;
- type: string;
- rel: string;
- }
-
- export interface SizeUpdate {
- width: number;
- height: number;
- }
-
- export interface AutoHeightWebViewProps extends WebViewProps {
- onSizeUpdated: (size: SizeUpdate) => void;
- files: StylesFile[];
- style: ViewStyle;
- customScript: string;
- customStyle: string;
- viewportContent: string;
- scrollEnabledWithZoomedin: boolean;
- }
-
- export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}
|