@native-html/iframe-plugin
Version:
🌐 A WebView-based plugin to render iframes in react-native-render-html
26 lines (15 loc) • 899 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@native-html/iframe-plugin](./iframe-plugin.md) > [useHtmlIframeProps](./iframe-plugin.usehtmliframeprops.md)
## useHtmlIframeProps() function
Extract props for the HTMLIframe component from renderer function arguments. This function is especially usefull for custom iframe renderers.
<b>Signature:</b>
```typescript
export default function useHtmlIframeProps({ style, tnode }: CustomRendererProps<TBlock>, iframeConfig?: IframeConfig): HTMLIframeProps;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| { style, tnode } | CustomRendererProps<TBlock> | |
| iframeConfig | [IframeConfig](./iframe-plugin.iframeconfig.md) | Override config options. |
<b>Returns:</b>
[HTMLIframeProps](./iframe-plugin.htmliframeprops.md)