@native-html/iframe-plugin
Version:
🌐 A WebView-based plugin to render iframes in react-native-render-html
28 lines (19 loc) • 1.57 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@native-html/iframe-plugin](./iframe-plugin.md) > [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<string, string> | 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<ViewStyle> | Container style. |
| [WebView](./iframe-plugin.htmliframeprops.webview.md) | ComponentType<WebViewProps> | 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; |