12345678910111213141516171819202122232425262728293031 |
-
-
-
-
- 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;
- baseUrl: string;
- files: StylesFile[];
- style: ViewStyle;
- customScript: string;
- customStyle: string;
- zoomable: boolean;
- }
-
- export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}
|