UNPKG

@native-html/iframe-plugin

Version:

🌐 A WebView-based plugin to render iframes in react-native-render-html

28 lines (19 loc) 1.57 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@native-html/iframe-plugin](./iframe-plugin.md) &gt; [HTMLIframeProps](./iframe-plugin.htmliframeprops.md) ## HTMLIframeProps interface Props for the HTMLIframe component. <b>Signature:</b> ```typescript export interface HTMLIframeProps<WebViewProps = any> extends IframeConfig ``` <b>Extends:</b> [IframeConfig](./iframe-plugin.iframeconfig.md) ## Properties | Property | Type | Description | | --- | --- | --- | | [htmlAttribs](./iframe-plugin.htmliframeprops.htmlattribs.md) | Record&lt;string, string&gt; | Html attributes for this iframe node. | | [onLinkPress?](./iframe-plugin.htmliframeprops.onlinkpress.md) | RenderersProps\['a'\]\['onPress'\] | <i>(Optional)</i> Handle link press events. | | [scaleFactor](./iframe-plugin.htmliframeprops.scalefactor.md) | number | When scalesPageToFit is enabled, scales the WebView zoom level to make sure the viewport fits contentWidth. | | [source](./iframe-plugin.htmliframeprops.source.md) | { uri?: string; html?: string; } | The source for the iframe. | | [style](./iframe-plugin.htmliframeprops.style.md) | StyleProp&lt;ViewStyle&gt; | Container style. | | [WebView](./iframe-plugin.htmliframeprops.webview.md) | ComponentType&lt;WebViewProps&gt; | The <code>WebView</code> Component you wish to use. | | [webViewProps?](./iframe-plugin.htmliframeprops.webviewprops.md) | WebViewProps | <i>(Optional)</i> Props to be passed to the <code>WebView</code> component; |